From patchwork Sun Jun 26 13:51:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9199525 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 5F66360752 for ; Sun, 26 Jun 2016 13:52:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51EEF28540 for ; Sun, 26 Jun 2016 13:52:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 453402854B; Sun, 26 Jun 2016 13:52:01 +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 D20C128540 for ; Sun, 26 Jun 2016 13:52:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752238AbcFZNvo (ORCPT ); Sun, 26 Jun 2016 09:51:44 -0400 Received: from mout.web.de ([212.227.15.3]:65463 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752068AbcFZNvm (ORCPT ); Sun, 26 Jun 2016 09:51:42 -0400 Received: from [192.168.1.2] ([77.182.59.103]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0M1noI-1bVnsJ2sGY-00tkaS; Sun, 26 Jun 2016 15:51:37 +0200 Subject: [PATCH 5/6] mfd: smsc-ece1099: Delete an unnecessary variable initialisation in smsc_i2c_probe() To: Lee Jones , Tony Lindgren , linux-omap@vger.kernel.org References: <566ABCD9.1060404@users.sourceforge.net> <5682D228.7070902@users.sourceforge.net> <20160111082922.GB14104@x1> <05b7db2a-437a-60ac-d289-71d2150e7f5f@users.sourceforge.net> <20160608111442.GB14888@dell> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: <1b29f010-5617-3862-23f5-42a5e6a1bc81@users.sourceforge.net> Date: Sun, 26 Jun 2016 15:51:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: X-Provags-ID: V03:K0:RB5fKOtRBxXOsoMcEtb+1hm2CZJXXwnJORPGMUzRxdzAvWMt4x1 Z1LhIZeVa3nRq8HUNhZU9N8MLJcWGAd60rdtjI69C0OpLIZFdQ+H/+snJvgHK+ZIFPmscKX uLlKOZ2Vy/PRIot0PficYqZ+tjGQKxcLx9AJDCn0+9J/J19vuMb9XYZdpNFQGMs8skzDT/P DjQS+AAiQW7R8yK2mDX2w== X-UI-Out-Filterresults: notjunk:1; V01:K0:dYWrE6jgY0k=:oXl1sKziS5sCQcIz7tDeO8 wU+gVeiNFtJF3pT8kBuy+SLePim/SVyv+/q0Nbhr9nUaSpcR4uXBo2P8mzxtBa0OtC2S3+T0d 2AwOH/+11dzpa1DkawqghECkFFMxx8OadE77IKmc0dz0OXWPsS3Lye9E8Yiw6OGoaFlEBHsrB SyPivZ8U+SiZO0P5kh2Pu3gjHvY/SuSFsdvwy8JOkq+38eaBEm0zhzfOC2M1v7z+eUx46jdja MjY3QEExVKThG6FL5pgwYnDkSJ2W3X7eEJSTS4pzX/CuR1f+YTC0RlnDUkS8Kq7P1zWZNCbOR B6LXVirMKRJQMSz/4o546usUDea+CrjqZtrQ2jKTHZhfUvpHXO6joaTRZ5l1jh4iGuR6Ofkju P16tZ9LvL+I1NY4HyUPzJyGsrWPDzMHyQ730D6tYecpwEKiTAT0OjIWVTMmy95xiDMbyn1zP3 eiBhegDeFUl67wo3PMyZ4DK2NvYgjtTkQcxN5VwQjXqRLOGCG8l1bj7dahCEM+3m7QahSbf+3 rZRSzhDm7PaStqO2KG0VnlTuRDtIME7gqbuGhwakJArGdRLT8I5Jm7eUyQkM7BkiMHTrqykIE JlapwefiZK8aZ82Y2I/YRIEiNIwr3WB2W9bDQfV3Cg40cXXZqT0grTzS97cfl5wBb8TD31k95 7znT6VVkeShwo2xwrLpk7cfybb0nwzjDf06ZakWCuIBuXpTa51lpU3QC06/e88zngYUN8d5EX gz+93XtKm9u2C0LrDeOi5lkzVfasECW/Xh1IdR6ZNG8qjYkWZanNMbqfiWG9BLfKZrR7MmB4k wZ2g8+2 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: Sun, 26 Jun 2016 14:14:54 +0200 The variable "ret" will be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/mfd/smsc-ece1099.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/smsc-ece1099.c b/drivers/mfd/smsc-ece1099.c index 7f89e89..2aaf89f 100644 --- a/drivers/mfd/smsc-ece1099.c +++ b/drivers/mfd/smsc-ece1099.c @@ -36,7 +36,7 @@ static int smsc_i2c_probe(struct i2c_client *i2c, { struct smsc *smsc; int devid, rev, venid_l, venid_h; - int ret = 0; + int ret; smsc = devm_kzalloc(&i2c->dev, sizeof(struct smsc), GFP_KERNEL);