Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6200554imm; Mon, 27 Aug 2018 11:26:33 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda2xxGun5yB5jWLByz7ELlQP1jK1KNyRJOf8AUWtnX5lv9Xv85dO6/f16FzV4xKLfvciY3w X-Received: by 2002:a17:902:82c9:: with SMTP id u9-v6mr14169729plz.138.1535394393263; Mon, 27 Aug 2018 11:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535394393; cv=none; d=google.com; s=arc-20160816; b=Qaguaoaa7skv2z1MzDMOh1suFW09v2fy8GIitn3gvwl3PS5E8XSb1sbRIS8LetBUlx ZO7CGpxs7dp91LtTIV2n641e8/U9ntKtNSVegpVYf4YrJS9GuBjg/T2mW/UHfynrTiWV R7KWquRZpPJvnUVsD7UHhzIMR4xc3kV2gseafwc1QAZEBcEYjstDgdoSs02hj86XbA5c o2xlHLpW8WlJSz89tPTqUmINQeuiCWXRhiNkYdmUtK5tOyHQJe38JB1qP+y4ZxFIqTuD oGK/kexyRtoVwR02N+Xl3TJJWIntXJcTtNhbuPO3HHhSrbC8Ymm99dgWeyPyjeRMtQOQ 91QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature :arc-authentication-results; bh=LAC4lPRFAZrMekw3Lexgm7vPdkcUn2SKE9dVuS2id48=; b=oLJ5Gah2plRB88t/GT1BYQ2s/Cuma5sMJNJRHddlebHEFUI/NpTilNDE64CkcTP3HS OVbcxgN5XRLYJdnWn7fETkYfL3TVnUR04tqbekLzKuCoXMMjBX/frBI1SQ3eTbAzmn8W JDTC5GMe9tUtE+h3MGmtlvwK/kYIQBlFsRHwUwgwSGQSxv4/eNw9oXX6toUhuwXZ/Rsi mZlNcEDDJz9UXSNmTBErMABTdXwD/QRSv5i2JltEC3NMA7a7mOJWnxbwHaxv0+w1QGFg Y+MKpqni7LZdXkKzInICn3Zn4EeOAO0Q+0kPUzkGIQtJyuRphA7aN6V82l4h2JtYShnH CbtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=DphGq5w8; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i8-v6si13155060pgj.33.2018.08.27.11.26.18; Mon, 27 Aug 2018 11:26:33 -0700 (PDT) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=DphGq5w8; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727796AbeH0WMC (ORCPT + 99 others); Mon, 27 Aug 2018 18:12:02 -0400 Received: from mail-qk0-f201.google.com ([209.85.220.201]:33841 "EHLO mail-qk0-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726895AbeH0WMB (ORCPT ); Mon, 27 Aug 2018 18:12:01 -0400 Received: by mail-qk0-f201.google.com with SMTP id y130-v6so15782646qka.1 for ; Mon, 27 Aug 2018 11:24:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=LAC4lPRFAZrMekw3Lexgm7vPdkcUn2SKE9dVuS2id48=; b=DphGq5w8fTA9P8btDTfJ5zSuWiUqkBsipbNJxSd7AT4lppFQdUFZ7KcGBCWyFe2JHF zNxZX2FhCYu43b/IeOBZCbXdujXfe/LR95aihqQDqRHSr0qN7Esqp/mZCm3RKFTkM2JI NnJV/Q0j9ej7C9LkQtgTYXRYN+ORfkEs5uW9D4t/T008ILWC91S7gruY/ZEL8VcaIxoJ w+FAVDRcKLxSz9Brwu/H/4+lgCdQkr8lYSYq3z0hwEaMlO2W951NPlUeO1tQJHoNexIz nUs1vXR0fAXQKew+CHMlMCHJ6w06xyWcwPaVywsB9voxpegnM9NLJgA9Qyy3K7euPu93 eV2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=LAC4lPRFAZrMekw3Lexgm7vPdkcUn2SKE9dVuS2id48=; b=kmym9T1GyXUynKJnhPVi39jHFCtqWH6XeVDp128jGcuYyJF5/GixFoWn++JJIJZWx6 QzLpEbMwbWl5cpZ6D8R72NmItp+2mJk0LBRR8WwdAJBeUQFypztgyCmKDJIRseS05T2y 7smGszXejUGDf3dBSanPKV5Wwtv7Jco7qgYoxBje9M111sxy14GQ2ZGvieEazghgfmpH raJgT+UjvvtAc5NalLJoINum9KZN9muYPN9EQlf3nwG8CtUI7M6mYsMjQvah6y3nquq7 JdO0HFykjfHiRPGKJJA98s7V6YVp5XedHPMP2/LQPbmCT/5+HocFr3xPgIRAJlsjisIi k3IQ== X-Gm-Message-State: APzg51D5BubcHZSLFi7XsBB0AgTx+JIIrzutn7hZsfz9bhNKUBMz5n91 ZOUE3/cuaDrK/BPcHrjdqfBd8mZ0 X-Received: by 2002:aed:3ed7:: with SMTP id o23-v6mr8800812qtf.4.1535394258988; Mon, 27 Aug 2018 11:24:18 -0700 (PDT) Date: Mon, 27 Aug 2018 11:23:10 -0700 In-Reply-To: <20180827182315.126345-1-rkir@google.com> Message-Id: <20180827182315.126345-15-rkir@google.com> Mime-Version: 1.0 References: <20180827182315.126345-1-rkir@google.com> X-Mailer: git-send-email 2.19.0.rc0.228.g281dcd1b4d0-goog Subject: [PATCH 15/20] platform: goldfish: pipe: Remove reduntant casting to (void) From: rkir@google.com To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, tkjos@google.com, Roman Kiryanov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Roman Kiryanov Casting to (void) is no-op. Signed-off-by: Roman Kiryanov --- drivers/platform/goldfish/goldfish_pipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers/platform/goldfish/goldfish_pipe.c index cab1935a04c5..fb37499731a4 100644 --- a/drivers/platform/goldfish/goldfish_pipe.c +++ b/drivers/platform/goldfish/goldfish_pipe.c @@ -368,7 +368,7 @@ static int wait_for_host_signal(struct goldfish_pipe *pipe, int is_write) set_bit(wake_bit, &pipe->flags); /* Tell the emulator we're going to wait for a wake event */ - (void)goldfish_cmd(pipe, + goldfish_cmd(pipe, is_write ? PIPE_CMD_WAKE_ON_WRITE : PIPE_CMD_WAKE_ON_READ); while (test_bit(wake_bit, &pipe->flags)) { @@ -748,7 +748,7 @@ static int goldfish_pipe_release(struct inode *inode, struct file *filp) struct goldfish_pipe_dev *dev = pipe->dev; /* The guest is closing the channel, so tell the emulator right now */ - (void)goldfish_cmd(pipe, PIPE_CMD_CLOSE); + goldfish_cmd(pipe, PIPE_CMD_CLOSE); spin_lock_irqsave(&dev->lock, flags); dev->pipes[pipe->id] = NULL; -- 2.19.0.rc0.228.g281dcd1b4d0-goog