Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750894Ab3IFITT (ORCPT ); Fri, 6 Sep 2013 04:19:19 -0400 Received: from mail-pb0-f53.google.com ([209.85.160.53]:41571 "EHLO mail-pb0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750777Ab3IFITI (ORCPT ); Fri, 6 Sep 2013 04:19:08 -0400 From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: anton@enomsg.org, dwmw2@infradead.org, lee.jones@linaro.org, sachin.kamat@linaro.org Subject: [PATCH v3 2/4] ab8500-charger: Remove redundant break Date: Fri, 6 Sep 2013 13:31:10 +0530 Message-Id: <1378454473-24508-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1378454473-24508-1-git-send-email-sachin.kamat@linaro.org> References: <1378454473-24508-1-git-send-email-sachin.kamat@linaro.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 953 Lines: 31 Each of the if-else blocks has a break statement. Remove the additional one which is unreachable. Signed-off-by: Sachin Kamat Acked-by: Lee Jones --- No changes since v1. --- drivers/power/ab8500_charger.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/power/ab8500_charger.c b/drivers/power/ab8500_charger.c index fd35018..19110aa 100644 --- a/drivers/power/ab8500_charger.c +++ b/drivers/power/ab8500_charger.c @@ -766,7 +766,6 @@ static int ab8500_charger_max_usb_curr(struct ab8500_charger *di, ret = -ENXIO; break; } - break; case USB_STAT_CARKIT_1: case USB_STAT_CARKIT_2: case USB_STAT_ACA_DOCK_CHARGER: -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/