staging: slicoss: fail out if we dont have a valid firmware file
authorDevendra Naga <devendra.aaru@gmail.com>
Mon, 22 Oct 2012 22:15:41 +0000 (18:15 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 23:03:26 +0000 (16:03 -0700)
fail instead calling request_firmware with filename as a null string
and return -ENOENT

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slicoss.c

index cd920dad85cdefb881b6ca25ddd62c5400125e12..6af8fb49a4a38259e189c96ee0969df4a93f919b 100644 (file)
@@ -593,8 +593,7 @@ static int slic_card_download(struct adapter *adapter)
                file = "slicoss/gbdownload.sys";
                break;
        default:
-               ASSERT(0);
-               break;
+               return -ENOENT;
        }
        ret = request_firmware(&fw, file, &adapter->pcidev->dev);
        if (ret) {