diff options
| author | Emil Goode <emilgoode@gmail.com> | 2012-08-18 18:12:48 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-05 12:33:40 -0700 |
| commit | 23e7c6a765df64cafebff2d50fc51345797ca99a (patch) | |
| tree | 74e01f0e6225d3a5193cbd3b665b0ffeeec364a5 /include/linux/mutex-debug.h | |
| parent | 1a16afa2cecd36bc4b6ba00fe4c83fcf5ca6e710 (diff) | |
| download | olio-linux-3.10-23e7c6a765df64cafebff2d50fc51345797ca99a.tar.xz olio-linux-3.10-23e7c6a765df64cafebff2d50fc51345797ca99a.zip | |
tty: serial: max310x: Check return code of gpiochip_remove
The gpiochip_remove function may fail to remove a gpio_chip
if any GPIOs are still requested. This patch informs the caller
of such a senario.
Sparse is warning because the function prototype has a
__must_check annotation.
Sparse warning:
drivers/tty/serial/max310x.c:1223:18: warning:
ignoring return value of ‘gpiochip_remove’,
declared with attribute warn_unused_result
[-Wunused-result]
Signed-off-by: Emil Goode <emilgoode@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/mutex-debug.h')
0 files changed, 0 insertions, 0 deletions