summaryrefslogtreecommitdiff
path: root/drivers/macintosh/windfarm_cpufreq_clamp.c
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2018-09-12 03:18:44 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2018-10-08 14:53:10 +0300
commit5f93d7081a47e1972031ccf57c4b2779eee162fb (patch)
treeb326c06426133b198af50b3e7f90de7002d3e234 /drivers/macintosh/windfarm_cpufreq_clamp.c
parentb52dce87389385aad54f5680329b41257ee0f7ac (diff)
downloadlinux-5f93d7081a47e1972031ccf57c4b2779eee162fb.tar.xz
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 'drivers/macintosh/windfarm_cpufreq_clamp.c')
0 files changed, 0 insertions, 0 deletions