From patchwork Sat May 9 15:57:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 6369891 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 516A7BEEE1 for ; Sat, 9 May 2015 15:57:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 793C52026F for ; Sat, 9 May 2015 15:57:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A0D5C20340 for ; Sat, 9 May 2015 15:57:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751708AbbEIP5o (ORCPT ); Sat, 9 May 2015 11:57:44 -0400 Received: from mail-yh0-f47.google.com ([209.85.213.47]:34206 "EHLO mail-yh0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751686AbbEIP5n (ORCPT ); Sat, 9 May 2015 11:57:43 -0400 Received: by yhw29 with SMTP id 29so26650311yhw.1 for ; Sat, 09 May 2015 08:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=5HI/VCt1DaPjq6Wb38s86KylMmkflP5wkPg/3zKBN7E=; b=bw0X7haefEcNASfFAKuJ1Yz53X6LPE46S2Bf5ojqnKWF8O/docaiHF8j3qTmv4GLQy 4bnP86PBlRuJC8i28e52Wx3+y7gMZnfSKJU0grO6crA5AHVP3g1cEAHJ4ljYoJ0tdNxe UEPFU82Z0G7l3J4kGxAIJRoVu/Dcp6hNn6ltparuDJqnWni+OS893QG5pYEQ06p/QoJ+ A8sjaC/CThEcwi363eJVpqxRzaV9ZOXg4Knc+fT2vOmlm8BcJn6Oivj8Y37DkYvJ5JvV pp0IZuefCopwMAVQ5t+z/KH4HX1RlMRkQcKLEl348XiV7hOVl9iUgzgv4thfT7eySAGJ CvHg== X-Received: by 10.236.14.34 with SMTP id c22mr2929909yhc.159.1431187062741; Sat, 09 May 2015 08:57:42 -0700 (PDT) Received: from localhost.localdomain ([187.64.235.17]) by mx.google.com with ESMTPSA id e47sm7400067yhj.38.2015.05.09.08.57.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 09 May 2015 08:57:41 -0700 (PDT) From: Fabio Estevam To: broonie@kernel.org Cc: linux-spi@vger.kernel.org, Fabio Estevam Subject: [PATCH] spi: spidev: Remove unneeded variable Date: Sat, 9 May 2015 12:57:19 -0300 Message-Id: <1431187039-10573-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam Remove unneeded variable used to store return value. The semantic patch that makes this change is available in scripts/coccinelle/misc/returnvar.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Fabio Estevam --- drivers/spi/spidev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index b00ae96..dd616ff 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -635,7 +635,6 @@ err_find_dev: static int spidev_release(struct inode *inode, struct file *filp) { struct spidev_data *spidev; - int status = 0; mutex_lock(&device_list_lock); spidev = filp->private_data; @@ -664,7 +663,7 @@ static int spidev_release(struct inode *inode, struct file *filp) } mutex_unlock(&device_list_lock); - return status; + return 0; } static const struct file_operations spidev_fops = {