power: supply: da9150: Remove redundant error logging
authorDeepak R Varma <drv@mailo.com>
Thu, 22 Dec 2022 17:18:29 +0000 (22:48 +0530)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 2 Jan 2023 19:16:56 +0000 (20:16 +0100)
commit5dd482688ad34a92c8b0907a64f7f022310f982d
tree5b36db45e590e5becc3ec630b4203d2e59e8240e
parenta441f3b90a340e5c94df36c33fb7000193ee0aa7
power: supply: da9150: Remove redundant error logging

A call to platform_get_irq_byname() already prints an error on failure
within its own implementation. So printing another error based on its
return value in the caller is redundant and should be removed. The
clean up also makes if condition block braces and the device pointer
variable dev unnecessary. Remove those as well.

Issue identified using platform_get_irq.cocci coccinelle semantic patch.

Signed-off-by: Deepak R Varma <drv@mailo.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/da9150-charger.c