summaryrefslogtreecommitdiffstats
path: root/drivers/staging/slicoss
diff options
context:
space:
mode:
authorDevendra Naga2012-09-05 12:03:46 +0200
committerGreg Kroah-Hartman2012-09-05 20:59:51 +0200
commit92adcc805764f5b5c552741298c079ce2de8757e (patch)
treeecc3b58ae9aa6b9eedd36f615c937f8ed0228d9b /drivers/staging/slicoss
parentstaging: gdm72xx: use list_move_tail instead of list_del/list_add_tail (diff)
downloadkernel-qcow2-linux-92adcc805764f5b5c552741298c079ce2de8757e.tar.gz
kernel-qcow2-linux-92adcc805764f5b5c552741298c079ce2de8757e.tar.xz
kernel-qcow2-linux-92adcc805764f5b5c552741298c079ce2de8757e.zip
staging: slicoss: remove default case after we done with request_firmware
we are returning -ENOENT when there is no firmware file for a matching device id. then we start calling request_firmware, after this we do checks on the firmware length of corresponding device id, since the default case is handled in the begining itself there is no need of a default case at the firmware length checks Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/slicoss')
-rw-r--r--drivers/staging/slicoss/slicoss.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c
index 170e0dfc41df..10dcd331795b 100644
--- a/drivers/staging/slicoss/slicoss.c
+++ b/drivers/staging/slicoss/slicoss.c
@@ -539,9 +539,6 @@ static int slic_card_download_gbrcv(struct adapter *adapter)
return -EINVAL;
}
break;
- default:
- ASSERT(0);
- break;
}
/* start download */
slic_reg32_write(&slic_regs->slic_rcv_wcs, SLIC_RCVWCS_BEGIN, FLUSH);