mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
staging: slicoss: fail out if we dont have a valid firmware file
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>
This commit is contained in:
parent
b5254867f9
commit
670d145aa0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user