aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strcpy.c
diff options
context:
space:
mode:
authorPrashant Malani <pmalani@chromium.org>2021-09-15 18:46:27 -0700
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>2021-09-23 17:41:30 +0200
commitd50497c4a05e73e76874fd0d4942036375a7ec0f (patch)
treec1f05368ee9a868bec66cabbfb6a78bfe13b8a7b /lib/test_fortify/write_overflow-strcpy.c
parent5135b2139212f55c07c47e9af5e22f5874514011 (diff)
platform/chrome: cros_ec_proto: Fix check_features ret val
The kerneldoc for cros_ec_check_features() states that it returns 1 or 0 depedending on whether a feature is supported or not, but it instead returns a negative error number in one case, and a non-1 bitmask in other cases. Since all call-sites only check for a 1 or 0 return value, update the function to return boolean values. Signed-off-by: Prashant Malani <pmalani@chromium.org> Reviewed-by: Guenter Roeck <groeck@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Link: https://lore.kernel.org/r/20210916014632.2662612-1-pmalani@chromium.org
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions