summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/af_unix/unix_connect.c
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2022-07-01 22:47:53 +0200
committerDavid S. Miller <davem@davemloft.net>2022-07-04 10:39:25 +0100
commit03b3df43ce1f64b2ec6ef8cbcf2006f3938643b2 (patch)
tree9f58d2ab23fb13af34bf22a6bfd24c0f721c44fb /tools/testing/selftests/net/af_unix/unix_connect.c
parent3147242980c5f849978b424cf79dda4fef20716f (diff)
downloadlinux-03b3df43ce1f64b2ec6ef8cbcf2006f3938643b2.tar.bz2
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 <lukas@wunner.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/af_unix/unix_connect.c')
0 files changed, 0 insertions, 0 deletions