staging: panel: Set default parport module param value
authorMariusz Gorski <marius.gorski@gmail.com>
Thu, 27 Nov 2014 21:36:45 +0000 (22:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2014 00:34:34 +0000 (16:34 -0800)
Set default parport module param value to DEFAULT_PARPORT so that
a if-block can be avoided.

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

index c6eeddfb398fee03e757fc512a3fc20cdd8e7131..3dd318af15952efeba55bc8be966f354b8159c95 100644 (file)
@@ -429,7 +429,7 @@ static struct timer_list scan_timer;
 
 MODULE_DESCRIPTION("Generic parallel port LCD/Keypad driver");
 
-static int parport = -1;
+static int parport = DEFAULT_PARPORT;
 module_param(parport, int, 0000);
 MODULE_PARM_DESC(parport, "Parallel port index (0=lpt1, 1=lpt2, ...)");
 
@@ -2231,9 +2231,6 @@ static int panel_init(void)
        if (lcd_type < 0)
                lcd_type = lcd_enabled;
 
-       if (parport < 0)
-               parport = DEFAULT_PARPORT;
-
        /* take care of an eventual profile */
        switch (profile) {
        case PANEL_PROFILE_CUSTOM:
This page took 0.027309 seconds and 5 git commands to generate.