]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: unisys: visorinput: Add default conditions to case statements
authorDavid Binder <david.binder@unisys.com>
Thu, 3 Nov 2016 15:44:29 +0000 (11:44 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Nov 2016 09:56:39 +0000 (10:56 +0100)
This commit adds a default condition to those case statements that do not
already have one. This is done to provide both a logical covering of all
conditions, as well as to maintain uniformity with the rest of the Unisys
driver set.

Signed-off-by: David Binder <david.binder@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorinput/visorinput.c

index 6f94b646f7c58c45a5ca44bd3e68278d4e87f653..949cce680b29f800b1f243f7fb461dd884703196 100644 (file)
@@ -409,6 +409,9 @@ devdata_create(struct visor_device *dev, enum visorinput_device_type devtype)
                if (!devdata->visorinput_dev)
                        goto cleanups_register;
                break;
+       default:
+               /* No other input devices supported */
+               break;
        }
 
        dev_set_drvdata(&dev->device, devdata);
@@ -653,6 +656,9 @@ visorinput_channel_interrupt(struct visor_device *dev)
                        input_report_rel(visorinput_dev, REL_WHEEL, -1);
                        input_sync(visorinput_dev);
                        break;
+               default:
+                       /* Unsupported input action */
+                       break;
                }
        }
 }