]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: sm750fb: Refine the code and remove unused code.
authorElise Lennion <elise.lennion@gmail.com>
Wed, 26 Oct 2016 02:03:43 +0000 (00:03 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Oct 2016 13:19:37 +0000 (15:19 +0200)
commit57499d136e351ccd8143d02c6a1f6261b1775a69
treee4274e73090aa4f46f4e0c11fff8364c0335cd17
parentcf9caf1929882b66922aee698e99e6c8f357bee5
staging: sm750fb: Refine the code and remove unused code.

Every call to the function waitNextVerticalSync() used the macro
primaryWaitVerticalSync(), so the macro was removed and the function
waitNextVerticalSync() renamed to primary_wait_vertical_sync().

With this change, an unnecessary 'if' statement was removed together
with the lines within the 'else' statement, because it was never
satisfied.

The modified function was refined to better match the Kernel coding
style.

Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_display.c