Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753794AbbLYStY (ORCPT ); Fri, 25 Dec 2015 13:49:24 -0500 Received: from mout.web.de ([212.227.15.4]:63468 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753410AbbLYStT (ORCPT ); Fri, 25 Dec 2015 13:49:19 -0500 Subject: [PATCH] gpio-ucb1400: Delete an unnecessary variable initialisation in ucb1400_gpio_probe() References: <566ABCD9.1060404@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall To: linux-gpio@vger.kernel.org, Alexandre Courbot , Linus Walleij From: SF Markus Elfring Message-ID: <567D8FA7.2070701@users.sourceforge.net> Date: Fri, 25 Dec 2015 19:49:11 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <566ABCD9.1060404@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:W2wV+2e2J4LdpugTmrmhY1/03QVLi293nT3C94DmtiRCdLLJBVf OKshBW6k4mpqZSHAVlyspQ/WVZ1gITbTc4vc9rE7ZHD67gVTXDUFlPaokV5OvB2ob9ORjE+ fHK3UEVqCj1hYzl1TgzDh3A5GpglTZPRGVErg8GCjzgKeRQ5WqoWzGxj6Zmd1iTdT6HhiAj 6GSdh2henDvCSsysfPSpQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:WFaACMEYVY0=:D8zfMJa4qaxna2nmlYxxhI Ds/1rR/x+6LnY7O9DGkQ+5vC2mcbYRIizzDKxPDkRWZ/fxY2v3v9fcyvWKAGUoGxT+mbamnMz taBqGgtAO44/YIHcfbEaDZcSavJAZqeA+NPrCuOpU88R0zwehpulkZMGM1/bkBd/Le8cVONyO axS24chqYxp9qG0HZZwcudp9LbEEhWMgddkMX6CWsX8iidPU2cQ+DFCNi8x9V8Ddxv4zQoqeq Wv1Zc480+GoHVRQkwhwFyX6ClVv/o0b8WtqV8ckcnvFEqJZ5CaB9H8H7MUzLkHltD8nP21rDv EGH0t95fk72XuVyIfGme3z3256aYNHjHt1N91+EaJXU2AgcSC7Nzrs5KrPJuO6iCVToOEoqiL pjEvOybNJRHFkcwDvVKuDlAWj7PucSjw8lAz1k8uYBE2tDHfrP6W+uGLf1OKept+aBLtt0ng5 vhVO4OCaUBF0galVq+Zb8ZoIF+1EsCkyy60+IN0SaI4bDh2/b7/Jg2cy6TgK4Li0hATd2thjr Xdux+s19J4cRzglVAfuE5KN18tmpnxiBnWu2LT1h67gdpPXsywUgQc68o4+ajzFyOdcOTma2Q dZBCEZ6HJ90bYmTuGpo6scnngpyBgmwNlRIX2oWxPxH+Gzt2mtZuMcJ3jit8VgcjApIgkaFof 6dcng52i+YyxJBJAqlVhL5DByC38mFzwaC5rENhexpsg/ZJQklK2eVSmu10F6BD5rMKGv3OyE mnXC0mGIVMXrmdiVCJk/CwExrmwbF0a8cGtknrZLvRrldBNdru9mvCJCtfAFsJhVXs5iTDzRw A2Tt/XQ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1136 Lines: 33 From: Markus Elfring Date: Fri, 25 Dec 2015 19:36:20 +0100 The variable "err" will eventually be set to an appropriate value from a call of the gpiochip_add() function. Thus let us omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/gpio/gpio-ucb1400.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-ucb1400.c b/drivers/gpio/gpio-ucb1400.c index d502825..c963517 100644 --- a/drivers/gpio/gpio-ucb1400.c +++ b/drivers/gpio/gpio-ucb1400.c @@ -46,7 +46,7 @@ static void ucb1400_gpio_set(struct gpio_chip *gc, unsigned off, int val) static int ucb1400_gpio_probe(struct platform_device *dev) { struct ucb1400_gpio *ucb = dev_get_platdata(&dev->dev); - int err = 0; + int err; if (!(ucb && ucb->gpio_offset)) { err = -EINVAL; -- 2.6.3 -- 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/