aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strcpy.c
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2019-09-25 19:26:17 +0300
committerGreg Kroah-Hartman <[email protected]>2019-10-04 14:58:05 +0200
commita8afc193558a42d5df724c84436ae3b2446d8a30 (patch)
tree796eab74fe8e96ebf061d6aedf4ab4fd9325ec4d /lib/test_fortify/write_overflow-strcpy.c
parent254cc7743e847780655025c1d81a9c15854bf236 (diff)
serial: 8250_dw: Use devm_clk_get_optional() to get the input clock
Simplify the code which fetches the input clock by using devm_clk_get_optional(). This comes with a small functional change: previously all errors were ignored except deferred probe. Now all errors are treated as errors. If no input clock is present devm_clk_get_optional() will return NULL instead of an error which matches the behavior of the old code. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions