Skip to content
Commit aac79904 authored by Arvind Yadav's avatar Arvind Yadav Committed by Sebastian Reichel
Browse files

power: supply: cpcap-battery: Fix platform_get_irq_byname's error checking



The platform_get_irq_byname() function returns -1 if an error occurs.
zero or positive number on success. platform_get_irq_byname() error
checking for zero is not correct.

Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
parent 09edcb64
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment