diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2018-09-11 20:18:44 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-10-08 22:53:10 +1100 |
commit | 5f93d7081a47e1972031ccf57c4b2779eee162fb (patch) | |
tree | b326c06426133b198af50b3e7f90de7002d3e234 /mm/swap_slots.c | |
parent | b52dce87389385aad54f5680329b41257ee0f7ac (diff) | |
download | linux-5f93d7081a47e1972031ccf57c4b2779eee162fb.tar.gz linux-5f93d7081a47e1972031ccf57c4b2779eee162fb.tar.bz2 linux-5f93d7081a47e1972031ccf57c4b2779eee162fb.zip |
macintosh/via-macii: Remove BUG_ON assertions
The BUG_ON assertions I added to the via-macii driver over a decade ago
haven't fired AFAIK. Some can never fire (by inspection). One assertion
checks for a NULL pointer, but that would merely substitute a BUG crash
for an Oops crash. Remove the pointless BUG_ON assertions and replace
the others with a WARN_ON and an array bounds check.
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'mm/swap_slots.c')
0 files changed, 0 insertions, 0 deletions