]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: of: remove unnecessary variable in of_get_gpio_hog()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 14 Jul 2015 01:01:44 +0000 (10:01 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 15 Jul 2015 22:11:03 +0000 (00:11 +0200)
commitda09bbb4549ead7611a24dd79abfa95da1f2617f
tree7c83142cf160271b0e8e4d1109a81ae70b8ec45a
parente941cd27dd323747db26fb89f2a4b593cd9cc97b
gpio: of: remove unnecessary variable in of_get_gpio_hog()

The variable "desc" is only used for storing the return value at the
end of the function.  It is unneeded.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-of.c