From patchwork Thu Dec 3 12:59:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 7759841 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 490D19F1C2 for ; Thu, 3 Dec 2015 13:08:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 771F42054C for ; Thu, 3 Dec 2015 13:08:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A6AB820549 for ; Thu, 3 Dec 2015 13:08:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760036AbbLCNIM (ORCPT ); Thu, 3 Dec 2015 08:08:12 -0500 Received: from mail-pf0-f174.google.com ([209.85.192.174]:35361 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759722AbbLCNIL (ORCPT ); Thu, 3 Dec 2015 08:08:11 -0500 Received: by pfu207 with SMTP id 207so8598555pfu.2 for ; Thu, 03 Dec 2015 05:08:10 -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=XosGZYBd6UWTNMQHXIknaszBEJeI7DoUOd1b6nzVO0LSpk2PCM1RDqHt9ofBUcr0yJ 7773ffmBiD+T7875OtNVZZOgdbCm/tga2FJ+2JHJx61+r83C4o4I7KrunWhMowqrnkrv CRfr9tvuVwJqgl2PRp4Ed6NdTpIdvMBX9/uanoCJS+0Y8Pl10pJXogxxSVhAzruGOnEP lgpO/qDXtqHrEfkUBS/o4HZWSanWqyuhYp3WqXZrnaKmQcyYfdpnUUdhdNqynQ0J0hgQ nPpSixfCu0pvJX9LEWPaNOn2LzTV/CccI8AxMF0vCjRy6p84Knhd4D7AKsZz0FP7OfJC aD4g== X-Received: by 10.98.7.193 with SMTP id 62mr12972516pfh.22.1449147610967; Thu, 03 Dec 2015 05:00:10 -0800 (PST) Received: from sudip-pc.vectortproxy.org ([49.206.241.12]) by smtp.gmail.com with ESMTPSA id 82sm10717689pfn.76.2015.12.03.05.00.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Dec 2015 05:00:10 -0800 (PST) From: Sudip Mukherjee To: Mark Brown Cc: linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Sudip Mukherjee Subject: [PATCH 3/7] spi: lm70llp: remove cast to void Date: Thu, 3 Dec 2015 18:29:55 +0530 Message-Id: <1449147599-26705-3-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1449147599-26705-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1449147599-26705-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; }