staging: slicoss: remove default case after we done with request_firmware
authorDevendra Naga <devendra.aaru@gmail.com>
Wed, 5 Sep 2012 10:03:46 +0000 (15:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2012 18:59:51 +0000 (11:59 -0700)
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>
drivers/staging/slicoss/slicoss.c

index 170e0dfc41dfedd8edabc39e42eeaba14124a826..10dcd331795bbe72993cb3059986df7616b0f0d6 100644 (file)
@@ -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);