From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757310AbdDRPke (ORCPT ); Tue, 18 Apr 2017 11:40:34 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36138 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756804AbdDRPkb (ORCPT ); Tue, 18 Apr 2017 11:40:31 -0400 From: hubiaoyong To: lgirdwood@gmail.com Cc: broonie@kernel.org, linux-kernel@vger.kernel.org, hby2003@163.com, hubiaoyong Subject: [PATCH] regulator/core.c: remove the else statement Date: Tue, 18 Apr 2017 23:39:34 +0800 Message-Id: <1492529974-4332-1-git-send-email-hubiaoyong@gmail.com> X-Mailer: git-send-email 1.7.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org in the function regulator_ena_gpio_free, the if branch contains the return statement, so remove the else statement. Signed-off-by: hubiaoyong --- drivers/regulator/core.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 53d4fc7..de3d07a 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -2007,9 +2007,8 @@ static void regulator_ena_gpio_free(struct regulator_dev *rdev) kfree(pin); rdev->ena_pin = NULL; return; - } else { - pin->request_count--; } + pin->request_count--; } } } -- 1.7.1