From patchwork Thu Jan 14 07:11:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 59709 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp3830932lbb; Wed, 13 Jan 2016 23:13:59 -0800 (PST) X-Received: by 10.98.72.87 with SMTP id v84mr3643200pfa.15.1452755638841; Wed, 13 Jan 2016 23:13:58 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rx6si7551226pac.24.2016.01.13.23.13.58; Wed, 13 Jan 2016 23:13:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752116AbcANHNn (ORCPT + 29 others); Thu, 14 Jan 2016 02:13:43 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:35814 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751985AbcANHNk (ORCPT ); Thu, 14 Jan 2016 02:13:40 -0500 Received: by mail-wm0-f53.google.com with SMTP id f206so327346036wmf.0 for ; Wed, 13 Jan 2016 23:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dxqbETGe072sltBqeiDnXnjkuePVp8D950cSQmTK++M=; b=M9N29FpRRsTkOWiI7FideK2KKkJEsbhDllZ/rHM5IYIIi2b/om/LYtcmCdeYYOg//n Aprmpufe5gJXAP4FdpeVAjGFGOPoEYFg7gkmZE7THw0FtDYGPEz2+GyVT2ErqCAbduY2 Q+wY6RRZhgYgfn5oRsL62ZVLlvfK9lWyOnsIc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dxqbETGe072sltBqeiDnXnjkuePVp8D950cSQmTK++M=; b=dfZ+pFt4lyrey7ZL2J9Hgf4319LoqELl6BiWHNCr00PcjWFkooZC7YyrS2JSZPP32T vmsJkwL0cBPQ43KZMWhIXJ1oDAQqVzKNhMkc4Fb7ihra912UgZ5TlOYK0nPJEYB7Wo7M RGO5mWsfVIR0DeY9ncvFuVlbswoI8rLWjpfWyF8qY9zUjcJEGzJw11MbXLZ2xcBCYnwf hHyPGRjU4MRiw8iz5ckaIFQ3tGu2FNQdU4Gde9MjYKpZ6s4DhzVsjHAzC/2Q07eIX2hH EsZzMMkLrCAcVZWFF9BjvpSYg4ZCUZv2fMwUcsjhLpSXUsrHsH/PGzqylSZ/d7WyIiL4 LK9Q== X-Gm-Message-State: ALoCoQlygy2OohxAH6lidVVvNMOX5MeaxX9+HIg07grOrc7tkeJgo1LeBUiKyOU8hGOeYHJXSNXhE+cjTq15sdsGFZIkOUXV9Q== X-Received: by 10.194.109.194 with SMTP id hu2mr2150226wjb.134.1452755619149; Wed, 13 Jan 2016 23:13:39 -0800 (PST) Received: from localhost.localdomain ([217.46.108.250]) by smtp.gmail.com with ESMTPSA id c185sm23828522wma.5.2016.01.13.23.13.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Jan 2016 23:13:38 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@stlinux.com, maxime.coquelin@st.com, jassisinghbrar@gmail.com, dan.carpenter@oracle.com, seraphin.bonnaffe@st.com, Lee Jones Subject: [PATCH 2/4] mailbox: mailbox-test: Remove unused variable Date: Thu, 14 Jan 2016 07:11:27 +0000 Message-Id: <1452755489-18736-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1452755489-18736-1-git-send-email-lee.jones@linaro.org> References: <1452755489-18736-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Even before it was unused, it always returned zero anyway. Reported-by: Dan Carpenter Signed-off-by: Lee Jones --- drivers/mailbox/mailbox-test.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 1.9.1 diff --git a/drivers/mailbox/mailbox-test.c b/drivers/mailbox/mailbox-test.c index 7d9b915..e370aa6 100644 --- a/drivers/mailbox/mailbox-test.c +++ b/drivers/mailbox/mailbox-test.c @@ -45,7 +45,6 @@ static ssize_t mbox_test_signal_write(struct file *filp, size_t count, loff_t *ppos) { struct mbox_test_device *tdev = filp->private_data; - int ret; if (!tdev->tx_channel) { dev_err(tdev->dev, "Channel cannot do Tx\n"); @@ -69,7 +68,7 @@ static ssize_t mbox_test_signal_write(struct file *filp, return -EFAULT; } - return ret < 0 ? ret : count; + return count; } static const struct file_operations mbox_test_signal_ops = {