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>
if (!(pDevice->flags & DEVICE_FLAGS_OPENED)) {
rc = -EFAULT;
break;
- } else {
- rc = 0;
}
+ rc = 0;
pReq = (PSCmdRequest)rq;
pReq->wResult = MAGIC_CODE;
break;
{
rc = -EFAULT;
break;
- } else {
- rc = 0;
}
+ rc = 0;
if (test_and_set_bit(0, (void *)&(pMgmt->uCmdBusy)))
return -EBUSY;