staging: vt6655: Fixed else after return or break warning.
authorMelike Yurtoglu <aysemelikeyurtoglu@gmail.com>
Mon, 6 Oct 2014 13:21:46 +0000 (16:21 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:15 +0000 (10:29 +0800)
This patch fixes multiple instances of checkpatch.pl
WARNING : else is not generally useful after a break or return in
device_main.c

Signed-off-by: Melike Yurtoglu <aysemelikeyurtoglu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c

index 54e16f40d8ed7447c8a8bb789298926a0aee3c6f..8baeb8c4f4f1f2191d07be679313beedf413b143 100644 (file)
@@ -2915,9 +2915,8 @@ static int  device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
                if (!(pDevice->flags & DEVICE_FLAGS_OPENED)) {
                        rc = -EFAULT;
                        break;
-               } else {
-                       rc = 0;
                }
+               rc = 0;
                pReq = (PSCmdRequest)rq;
                pReq->wResult = MAGIC_CODE;
                break;
@@ -2934,9 +2933,8 @@ static int  device_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
                        {
                                rc = -EFAULT;
                                break;
-                       } else {
-                               rc = 0;
                        }
+                       rc = 0;
 
                if (test_and_set_bit(0, (void *)&(pMgmt->uCmdBusy)))
                        return -EBUSY;