extcon: Remove dup device name in the message and unneeded error check
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 22 Mar 2023 14:40:02 +0000 (16:40 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 29 May 2023 14:41:29 +0000 (23:41 +0900)
commit566825a31f65da111270abac35662502706e7c8a
treebfd793c7ce3b10375b41ede17c9150e7a3eb1a8f
parent9b4aea51cbcaefacaac655392f360bb3929ab63d
extcon: Remove dup device name in the message and unneeded error check

The device name is already printed with dev_err(), no need to repeat.
The device pointer itself is not supposed to be an error point, drop
that check.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon.c