staging: panel: Use defined value or checking module params state
authorMariusz Gorski <marius.gorski@gmail.com>
Thu, 27 Nov 2014 21:36:48 +0000 (22:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2014 00:34:34 +0000 (16:34 -0800)
commit2d35bcf66c61d696d9784fbf42a64daa9df0b068
tree9bfce2d7faf3d67fdd745bbf93993c2f3e25414a
parent36277d4ad01a6cb3c9e4b762f412cb45c29aa1ae
staging: panel: Use defined value or checking module params state

Avoid magic number and use a comparison with a defined value instead
that checks whether module param has been set by the user to some
value at loading time.

Signed-off-by: Mariusz Gorski <marius.gorski@gmail.com>
Acked-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/panel/panel.c