From patchwork Mon Dec 7 10:47:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 7781861 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 B51DFBEEE1 for ; Mon, 7 Dec 2015 10:48:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ECB122041A for ; Mon, 7 Dec 2015 10:48:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EFF7820392 for ; Mon, 7 Dec 2015 10:48:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753016AbbLGKs2 (ORCPT ); Mon, 7 Dec 2015 05:48:28 -0500 Received: from mail-pf0-f169.google.com ([209.85.192.169]:36861 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755389AbbLGKrt (ORCPT ); Mon, 7 Dec 2015 05:47:49 -0500 Received: by pfdd184 with SMTP id d184so63296002pfd.3; Mon, 07 Dec 2015 02:47:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=K0Qoj5jiMLHaXKMnL7H2IM2Xy3xA0QXF95DFx7sE+f4=; b=vajVS3RLDg/Hdj4zYLCFaAjQu+2QfM0nx5WaHPekr/20X9qyIsFyQSSr6AiEgD7q6r T95D/PX9YKapcHc6ZTprKrA/1+4a7LBumcIr+b0iJZlR/E0PwkOkJGRH2AzPH7VIEaKs epBGvznJQplBXfdqGahOn5yguYQYQ30kDGTMQpx5bxSXc2uJGYLQDGXYaRS5YMtvpJ53 BpfaiGu2Ve1MGECCUfuuRIzruOU3Gafq/T/HaXKIojrdtI+X9Ard8Iopr5WO9ybwWCt4 AaWaCEojC3RVBBc8W9dDIHeLdRr1ZRyH+ZKFVEZC+cwtfIGFwny4pIj6R5niLT0A12n5 7IAA== X-Received: by 10.98.79.202 with SMTP id f71mr42362324pfj.21.1449485269316; Mon, 07 Dec 2015 02:47:49 -0800 (PST) Received: from sudip-pc.vectortproxy.org ([122.169.145.251]) by smtp.gmail.com with ESMTPSA id 6sm33768892pfm.58.2015.12.07.02.47.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Dec 2015 02:47:48 -0800 (PST) From: Sudip Mukherjee To: Mark Brown Cc: linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Sudip Mukherjee Subject: [PATCH v2 3/8] spi: lm70llp: remove cast to void Date: Mon, 7 Dec 2015 16:17:30 +0530 Message-Id: <1449485255-1103-3-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1449485255-1103-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1449485255-1103-1-git-send-email-sudipm.mukherjee@gmail.com> 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 checkpatch was complaining about space after cast. But the cast to void is not required at that place. Signed-off-by: Sudip Mukherjee --- drivers/spi/spi-lm70llp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-lm70llp.c b/drivers/spi/spi-lm70llp.c index 7037028..133e76c 100644 --- a/drivers/spi/spi-lm70llp.c +++ b/drivers/spi/spi-lm70llp.c @@ -294,7 +294,7 @@ out_off_and_release: out_parport_unreg: parport_unregister_device(pd); out_free_master: - (void) spi_master_put(master); + spi_master_put(master); out_fail: pr_info("%s: spi_lm70llp probe fail, status %d\n", DRVNAME, status); } @@ -315,7 +315,7 @@ static void spi_lm70llp_detach(struct parport *p) parport_release(pp->pd); parport_unregister_device(pp->pd); - (void) spi_master_put(pp->bitbang.master); + spi_master_put(pp->bitbang.master); lm70llp = NULL; }