Skip to content

Commit

Permalink
staging: slicoss: remove default case after we done with request_firm…
Browse files Browse the repository at this point in the history
…ware

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>
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Sep 5, 2012
1 parent e5d2cb4 commit 92adcc8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/slicoss/slicoss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 92adcc8

Please sign in to comment.