]> git.baikalelectronics.ru Git - kernel.git/commit
staging: mt7621-gpio: change 'to_mediatek_gpio' to make just a one line return
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 1 Jun 2018 09:30:53 +0000 (11:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2018 11:16:24 +0000 (13:16 +0200)
commit7d6b41e36f3afa678a85c110a67bc38cbf57dfda
treeb4f480821e7c0422678d71e59170969c8717f4d4
parent858f04cd9b73c9467128f179f7915d4a8854e9d3
staging: mt7621-gpio: change 'to_mediatek_gpio' to make just a one line return

Function to_mediatek_gpio can directly return without declaring
anything else in its body improving readability. Also change
pointer '*' declaration to be with return type in the upper line.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-gpio/gpio-mt7621.c