From patchwork Tue Jan 16 12:01:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10166605 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 10138601E7 for ; Tue, 16 Jan 2018 12:01:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00FB42855E for ; Tue, 16 Jan 2018 12:01:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F3E5A28574; Tue, 16 Jan 2018 12:01:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 981882855E for ; Tue, 16 Jan 2018 12:01:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751723AbeAPMB0 (ORCPT ); Tue, 16 Jan 2018 07:01:26 -0500 Received: from mout.web.de ([212.227.17.11]:60960 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751512AbeAPMBZ (ORCPT ); Tue, 16 Jan 2018 07:01:25 -0500 Received: from [192.168.1.3] ([92.228.15.72]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LwqFo-1euz3S2gp6-016Pep; Tue, 16 Jan 2018 13:01:22 +0100 Subject: [PATCH 3/4] mfd/tps65910: Delete an unnecessary variable initialisation in tps65910_sleepinit() From: SF Markus Elfring To: linux-omap@vger.kernel.org, Lee Jones , Tony Lindgren Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <0e5997de-0c43-da8c-8ec6-9c3e593d9f5a@users.sourceforge.net> Date: Tue, 16 Jan 2018 13:01:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB X-Provags-ID: V03:K0:KO2sw0Vb56VnAiOFHGPAaXjRI+mBQKSUVBsdYbKeXlXUMl0moYC 3p6/nEHVPs+v1AuFHTStGJWaYeRyTd1KFu9WEJNjuG8HaeVuc49NDs3wIwXhkqzFYK+j8MG GSgqzxh3aGoHrug9rYBWoE4chNuMfbfwMGU9gizH3Q7RgArnerwTNYGFQuKx8B/W10J4+BE h+hytOJRWxhfKLqOp7oMA== X-UI-Out-Filterresults: notjunk:1; V01:K0:RErbYrUIhkM=:WspPhKas2uT2vTG6opFq5S Fq3RUmXdyx5Qdo5svHeoIi7b7yTlnQ9tZJbl5t0iJBYEvhtfmZst6ZHrFIn7DafSveYyFUyt9 pQiXaDFzRFS5E+7vPhZRCQ4zghf5W9yRoVvG1gIoQDQ66ZpbLAUWCFPoPO1zcuZhX+Bo9a4+N mjj6L6T5xVTSsBjuDx3vN/ZoRS3MuYxIl1Datf8LUv7uA1ARJt9BQHFoxjpL7HgJOspaBnVpn oCZDmEWFoAJBAl4snr7jFZlWATRUYZ5Y1tJ9+xFTZ/wu4p67Plvsy2yb1Buc49GLuCVtbVzoG rQQ36TjhVzzZI35Du3o03Wl9lUwbKZJQBLlSZtPSHOw92dJSAbBEJNru/kp85LLMlFoXKs1Rf wMkf+tj/kkj6rW0EWKdAK8qAu96YtSbOaXS8DBJC6J5XBFpIhKcybIytAv1pmicxu/CeyxeDQ cI/h+b332wgDcz5pRSpXWF2q27OI+yLBJgcI9urWdzZ45YAeuR+mwDJM9Ge3Mb5gm+X5nb1LS xh1BPCsDCiNIa3MkAV1CfdWIOF8h7DGh1jkYIjECXhWDLcaFLytgYxKKa/ZX/tlfnXFiohEUd 0ERTnUcg4IX5MhPhAzxfFOrJheyfeeIFurVAALZ0F7yt6NQOE/gWb+FIA41DVqLej3tA1o4YV 29DgZvAFzUCC5aAt4g7ZFDDBj1Foce3cWf+ButgVXYdCKLMr0c52388Kk6wItNshB/tFTWO3O te/pXpcLGpgvsT4QuiRidsmiv+FaSO3VksEoczkleV2ec0+4EoQ7DYQmbfHTduDLnrvKjn6Po HR1e+wvi64XqNx49R9ngv64meR33ERiZSuw0ObvZyAri5iPFbE= Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Tue, 16 Jan 2018 12:10:49 +0100 The local variable "dev" will be reassigned by a following statement. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/mfd/tps65910.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index 80ea1474c654..7e7d3d1642c6 100644 --- a/drivers/mfd/tps65910.c +++ b/drivers/mfd/tps65910.c @@ -312,7 +312,7 @@ static int tps65910_ck32k_init(struct tps65910 *tps65910, static int tps65910_sleepinit(struct tps65910 *tps65910, struct tps65910_board *pmic_pdata) { - struct device *dev = NULL; + struct device *dev; int ret; dev = tps65910->dev;