]> www.infradead.org Git - users/dwmw2/linux.git/commit
mctp i2c: drop check because i2c_unregister_device() is NULL safe
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 2 Dec 2024 08:27:13 +0000 (09:27 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 3 Dec 2024 10:53:33 +0000 (11:53 +0100)
commite8e7be7d212dc2bc83b8151e51088666a6c42092
tree8baa0c219004e8e91d26b389cdf0cf52275002a4
parentb32913a5609a36c230e9b091da26d38f8e80a056
mctp i2c: drop check because i2c_unregister_device() is NULL safe

No need to check the argument of i2c_unregister_device() because the
function itself does it.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://patch.msgid.link/20241202082713.9719-1-wsa+renesas@sang-engineering.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/mctp/mctp-i2c.c