Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6199995imm; Mon, 27 Aug 2018 11:25:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaLyV57n/mavPVNuOVFNmU3Oa2+P3WkB1EVaDC4pHKjOEOB5QcxAlxoRIcn3pybi+S38xbo X-Received: by 2002:a17:902:f20c:: with SMTP id gn12mr14067407plb.41.1535394351871; Mon, 27 Aug 2018 11:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535394351; cv=none; d=google.com; s=arc-20160816; b=djzplAV/Qk+GNLFH7St766Y9903eqnbpIxxQvWvX1fShVitKtB8SunfX34wZubMMsd +RumsPNxtzVor/ScfUmF2/exUxi53rTtL+youjqE+DUt3Y+cFrjDCr0GvfX9vhh3r42t XamCCDVj8G9mLNk7XMHxG3OHteR/hFyAaconch9cHIp2seYk5eH9GyzdSK/S+9I6j3LM Go4aFtLU8eYHANhQrHh+0Lg8lyYNcY9snAAAPOAlBtg1ym2zqPF2kLITwij6pP3VQjzw e2gq9TqSiQcqB4chx2hQOyDZFQJk3kv6/vWULTmXQRJGoKSsP1NLYPq/Aztl4ipL1f+j Pb1A== 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=LUhEpBtMAoapHe1f39BXO+A8sN/iXsBU5iE07wK0RtA=; b=naDjHjkPejnkGh9zz6C0PG6NFcGqdZwe/JyM8D563HEMaqtrOHwUzouktXEahG63Fg dKNrZhzUj2SwrhGc3iWoiARZmVoXAYHQXdGkdDaXdxPezY5Fn+cKf2pLYLFNwRYgPn50 XbrMG8+1+Z+hVwGR14gtQf4AGievIX+352G1j774+7koRuFYaWJa/NUQvAxSoPsKWxkA LVX0kHS+yaw753D1Ulr85+/5NSxdiaqTI89DKUpU3TQQP01ep96wCH/hy0zKjxLahubq MphVZhHnCssagVDL1QpA9bo1iVPNVH/SPXwUmD0erjP217lzYLdt30zQ29/KuRr1VTqL bEXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="bGxzlF/L"; 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 88-v6si15354657plc.515.2018.08.27.11.25.36; Mon, 27 Aug 2018 11:25:51 -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="bGxzlF/L"; 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 S1727655AbeH0WLp (ORCPT + 99 others); Mon, 27 Aug 2018 18:11:45 -0400 Received: from mail-qk0-f201.google.com ([209.85.220.201]:42446 "EHLO mail-qk0-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726895AbeH0WLp (ORCPT ); Mon, 27 Aug 2018 18:11:45 -0400 Received: by mail-qk0-f201.google.com with SMTP id z17-v6so15046010qka.9 for ; Mon, 27 Aug 2018 11:24:03 -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=LUhEpBtMAoapHe1f39BXO+A8sN/iXsBU5iE07wK0RtA=; b=bGxzlF/L5oOSS9TbN4u5FzxkjLJL3eXvoFWJli/OARjkZi4d75+EQbygXhXb0B3sR/ fpLQgINmq253Dc1tTyXb29pGvPOvq1aGoWvdYJFSlC4WQyzlO5DwTxOp5Xjf5JDZwWQd HvVAgo0Lnx9Sj1R4XT3l0bdZ5pAV91U7dCE3/5HRT9BXDfJxMRttT//m5BX6ii8mGYi3 zJcm04Jlsg6aeo2NMzW1dkOUtjB+y89r6uE0RIwSUakQn5nymxDf5W7BEZhflbfTAqvk BCmc95iDmDxGaBzan+IjvITzoSt489+cSv5N9ESoFZVZeCD5ucdCqVwjc5UdWLIMOw7f onyQ== 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=LUhEpBtMAoapHe1f39BXO+A8sN/iXsBU5iE07wK0RtA=; b=LIEKsPEmmgh6ZnD/txTcWQXiVUHpSOp1IeaEILYeGm1A8DAJiuwoSPUXLPxo/GvqUx 0PRpig5m65SKUzS+CADqzyhN4zMnmPwe5FQ5RPWISunFsZGD7JGHY5CF4yFVP3aL3lco v/IlWofhpyQbLasPAcCWqIgn7rWh8X7wJMspKkUHc5IzOT9vPWJ0JUX/6Ua3ZZ/1c7hh YlmdsUk3/SRTcd/uRDW4s53SPL6HcToPqbk2ZM0wYfMiVegJKIC38V2xQAYPdCoRYUIj pt/uDGpLUNBIWvBCRYdViyLewX+uBuToLb81Nz5+Is7zVgPgXazcjLMzkyvFyKlXhcmU cabg== X-Gm-Message-State: APzg51B6j5Sa+CkPopM2YXEmARMhr7dueJiY4mf828FoSzS3bgO6pnad cIvSQNZmprziGInezxqdXUIz3l7I X-Received: by 2002:ac8:707:: with SMTP id g7-v6mr8218779qth.26.1535394243020; Mon, 27 Aug 2018 11:24:03 -0700 (PDT) Date: Mon, 27 Aug 2018 11:23:05 -0700 In-Reply-To: <20180827182315.126345-1-rkir@google.com> Message-Id: <20180827182315.126345-10-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 10/20] platform: goldfish: pipe: Remove a redundant variable 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 The variable was not very useful. Signed-off-by: Roman Kiryanov --- drivers/platform/goldfish/goldfish_pipe.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers/platform/goldfish/goldfish_pipe.c index 62422a4282f5..3d28a9be5722 100644 --- a/drivers/platform/goldfish/goldfish_pipe.c +++ b/drivers/platform/goldfish/goldfish_pipe.c @@ -779,7 +779,6 @@ static struct miscdevice goldfish_pipe_miscdev = { static int goldfish_pipe_device_init(struct platform_device *pdev) { struct goldfish_pipe_dev *dev = &goldfish_pipe_dev; - char *page; int err = devm_request_irq(&pdev->dev, dev->irq, goldfish_pipe_interrupt, IRQF_SHARED, "goldfish_pipe", dev); @@ -809,12 +808,12 @@ static int goldfish_pipe_device_init(struct platform_device *pdev) * is to just allocate a page and place the buffers in it. */ BUILD_BUG_ON(sizeof(struct goldfish_pipe_dev_buffers) > PAGE_SIZE); - page = (char *)__get_free_page(GFP_KERNEL); - if (!page) { + dev->buffers = (struct goldfish_pipe_dev_buffers *) + __get_free_page(GFP_KERNEL); + if (!dev->buffers) { kfree(dev->pipes); return -ENOMEM; } - dev->buffers = (struct goldfish_pipe_dev_buffers *)page; /* Send the buffer addresses to the host */ { -- 2.19.0.rc0.228.g281dcd1b4d0-goog