Skip to content
Commit 5dd48268 authored by Deepak R Varma's avatar Deepak R Varma Committed by Sebastian Reichel
Browse files

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: default avatarDeepak R Varma <drv@mailo.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent a441f3b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment