aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLukas Wunner <[email protected]>2022-07-01 22:47:53 +0200
committerDavid S. Miller <[email protected]>2022-07-04 10:39:25 +0100
commit03b3df43ce1f64b2ec6ef8cbcf2006f3938643b2 (patch)
tree9f58d2ab23fb13af34bf22a6bfd24c0f721c44fb /tools/perf/scripts/python
parent3147242980c5f849978b424cf79dda4fef20716f (diff)
usbnet: smsc95xx: Clean up unnecessary BUG_ON() upon register access
smsc95xx_read_reg() and smsc95xx_write_reg() call BUG_ON() if the struct usbnet pointer passed in is NULL. The functions have just been amended to dereference the pointer on entry. So the kernel now oopses if the pointer is NULL, eliminating the need for an explicit BUG_ON(). Signed-off-by: Lukas Wunner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions