staging: mt7621-mmc: Remove redundant opcode check
authorChristian Lütke-Stetzkamp <christian@lkamp.de>
Sat, 7 Apr 2018 08:16:25 +0000 (10:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 13:36:31 +0000 (15:36 +0200)
commitf89ce734cbe53f96480eb3110dc676c02de42cb7
tree3db2e425835a8ce3c941cfa40af727bc9ab55f20
parent0e0836625b0a5efb1b86b2836b0d2349c66753de
staging: mt7621-mmc: Remove redundant opcode check

The opcode check in msdc_command_start is redundant in case of
MMC_SET_RELATIVE_ADDR, this is 3 like SD_SEND_RELATIVE_ADDR, so the
second check can be removed.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-mmc/sd.c