aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strcpy.c
diff options
context:
space:
mode:
authorBjorn Helgaas <[email protected]>2019-10-14 13:46:50 -0500
committerBjorn Helgaas <[email protected]>2019-11-20 17:33:32 -0600
commit6da2f2ccfd2deb81a63fc23a505ccd72de005c39 (patch)
treeaf2ccaf5fb046d23c278b9d2e42e2251bde78877 /lib/test_fortify/write_overflow-strcpy.c
parentf7b32a86e455b035dd45a334c203abf6fe118cf3 (diff)
PCI/PM: Make power management op coding style consistent
Some of the power management ops use this style: struct device_driver *drv = dev->driver; if (drv && drv->pm && drv->pm->prepare(dev)) drv->pm->prepare(dev); while others use this: const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; if (pm && pm->runtime_resume) pm->runtime_resume(dev); Convert the first style to the second so they're all consistent. Remove local "error" variables when unnecessary. No functional change intended. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions