From 670d145aa005c4ee024d79615147527a0371c1e4 Mon Sep 17 00:00:00 2001 From: Devendra Naga Date: Mon, 22 Oct 2012 18:15:41 -0400 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/slicoss/slicoss.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c index cd920dad85cd..6af8fb49a4a3 100644 --- a/drivers/staging/slicoss/slicoss.c +++ b/drivers/staging/slicoss/slicoss.c @@ -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) { -- 2.39.5