From patchwork Wed Dec 2 13:47:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 7746261 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 E68F9BEEE1 for ; Wed, 2 Dec 2015 13:49:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7B19B205E1 for ; Wed, 2 Dec 2015 13:49:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B0777205CD for ; Wed, 2 Dec 2015 13:49:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758397AbbLBNss (ORCPT ); Wed, 2 Dec 2015 08:48:48 -0500 Received: from mail-pa0-f50.google.com ([209.85.220.50]:35766 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758388AbbLBNsD (ORCPT ); Wed, 2 Dec 2015 08:48:03 -0500 Received: by pacej9 with SMTP id ej9so41565690pac.2; Wed, 02 Dec 2015 05:48:02 -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=fJ5eH8biVcd+uNpvrkp8R01TJk88yWwnKc2p4tqosS0=; b=z/KGGfUikGrqFzHJQWv2PY6zLmJ487DBN6vfQQNg7VLfjNQukjAVswHdjP1frcMAZu zrL14itQDTkrBf6dJ50hdTSwIJ5uwrolNB0DeWOb0blQzmPu68sE0kjqajv3HiWWkwYz TmKCbd53dZxDmVeq8gmex1GEO7AeiZSg/HDCjMqv+NBQnQ9c1WF5kqhvrxWUZe/wrSsN otrtdY4R8Jot2YlxtNPTKL6M3VGMWxqmT2UBmtB/Vg89VzZo+u+HBt++Ygu5ey7KVGrM wzgW3nuBzq83qPjE64CDgR1vHMJuy64XkxoZz5Yp+t8hZPVf4ut2wJ5YwpvfDQCwkp8h 6C2Q== X-Received: by 10.66.222.202 with SMTP id qo10mr4724575pac.27.1449064082103; Wed, 02 Dec 2015 05:48:02 -0800 (PST) Received: from sudip-pc.vectortproxy.org ([122.169.145.251]) by smtp.gmail.com with ESMTPSA id 6sm4612874pfm.58.2015.12.02.05.47.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Dec 2015 05:48:01 -0800 (PST) From: Sudip Mukherjee To: Mark Brown Cc: linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Sudip Mukherjee Subject: [PATCH 2/4] spi: butterfly: remove cast to void Date: Wed, 2 Dec 2015 19:17:49 +0530 Message-Id: <1449064071-4915-2-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1449064071-4915-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1449064071-4915-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-butterfly.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-butterfly.c b/drivers/spi/spi-butterfly.c index f520eaa..8fc284d 100644 --- a/drivers/spi/spi-butterfly.c +++ b/drivers/spi/spi-butterfly.c @@ -289,7 +289,7 @@ clean2: clean1: parport_unregister_device(pd); clean0: - (void) spi_master_put(pp->bitbang.master); + spi_master_put(pp->bitbang.master); done: pr_debug("%s: butterfly probe, fail %d\n", p->name, status); } @@ -317,7 +317,7 @@ static void butterfly_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); } static struct parport_driver butterfly_driver = {