]> git.baikalelectronics.ru Git - kernel.git/commit
staging: mt7621-mmc: Remove unnecessary BUG_ON() in msdc_dma_setup
authorChristian Lütke-Stetzkamp <christian@lkamp.de>
Sat, 16 Jun 2018 14:14:53 +0000 (16:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 12:48:04 +0000 (21:48 +0900)
commit12343b85affa5ce8c7b032fefba1d78e34da7c7e
treefa08be0c3795c71cf4a1a70f166970048318d19d
parent9d2792dbc502a3dd5266cb4fd7419786eb6a17c7
staging: mt7621-mmc: Remove unnecessary BUG_ON() in msdc_dma_setup

The BUG_ON() removed by this patch is just a duplicate of a prior
BUG_ON() statement. There the condition is just clearer, it checks
weather sglen > MAX_BD_NUM and MAX_BD_NUM is equal MAX_BD_PER_GPD. So
this statement can be safely removed.

Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-mmc/sd.c