Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7f0790d authored by Melike Yurtoglu's avatar Melike Yurtoglu Committed by Greg Kroah-Hartman
Browse files

staging: vt6655: Fixed else after return or break warning.



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: default avatarMelike Yurtoglu <aysemelikeyurtoglu@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d84e6337
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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;