]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: mockup: no need to check return value of debugfs_create functions
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Jun 2019 08:45:57 +0000 (10:45 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 27 Jun 2019 13:54:19 +0000 (15:54 +0200)
commitf360dcd4ef7fbaec774a64c54b402b4c8a4cffb2
tree59fd615bc3adffcb67ecdf9542eab114419cb3ce
parent690499d969bc5054ed43a9ef0c96f26d478fff6e
gpio: mockup: no need to check return value of debugfs_create functions

When calling debugfs functions, there is no need to ever check the
return value.  The function can work or not, but the code logic should
never do something different based on this.

Cc: Bamvor Jian Zhang <bamv2005@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Cc: linux-gpio@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[Bartosz: removed one more check for debugfs return value]
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mockup.c