diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-08-27 04:19:42 +0300 |
---|---|---|
committer | Anton Vorontsov <anton@enomsg.org> | 2013-08-27 18:12:40 -0700 |
commit | ed5243f8ab2470e988dce0e416eaaddb4d7d2ccc (patch) | |
tree | d6f1bb328747966662d154457a1937885e638dd0 /drivers/power | |
parent | 68f429d55876e4e51c2be2a1becb51950929bc87 (diff) | |
download | linux-stable-ed5243f8ab2470e988dce0e416eaaddb4d7d2ccc.tar.gz linux-stable-ed5243f8ab2470e988dce0e416eaaddb4d7d2ccc.tar.bz2 linux-stable-ed5243f8ab2470e988dce0e416eaaddb4d7d2ccc.zip |
ab8500-charger: We print an unintended error message
There is a missing break statement here, so we print an error message that
the USB type is invalid. The original code still works fine though except
for the error message.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/ab8500_charger.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/ab8500_charger.c b/drivers/power/ab8500_charger.c index f098fdafee9f..a4c4a10b3a41 100644 --- a/drivers/power/ab8500_charger.c +++ b/drivers/power/ab8500_charger.c @@ -774,6 +774,7 @@ static int ab8500_charger_max_usb_curr(struct ab8500_charger *di, di->max_usb_in_curr.usb_type_max = USB_CH_IP_CUR_LVL_0P5; dev_dbg(di->dev, "USB Type - 0x%02x MaxCurr: %d", link_status, di->max_usb_in_curr.usb_type_max); + break; case USB_STAT_NOT_VALID_LINK: dev_err(di->dev, "USB Type invalid - try charging anyway\n"); di->max_usb_in_curr.usb_type_max = USB_CH_IP_CUR_LVL_0P5; |