Received: by 10.223.164.221 with SMTP id h29csp1407181wrb; Wed, 1 Nov 2017 16:10:49 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TuIROMYgQNR/koJ49nJPvsArLJSWiGAq50ALEO+sMhakUpQlO1ZjbZtNfNP9RBTB6AkdiI X-Received: by 10.84.140.235 with SMTP id 98mr1170936plt.428.1509577849656; Wed, 01 Nov 2017 16:10:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509577849; cv=none; d=google.com; s=arc-20160816; b=EkLGKlFKcGfIDc0w7grq5ltWArFbY+R7pizg8Kx9OjGjxV7Sk4NRMffnOSSyavMPth gTuUuZ6E3dtvLaewMKMCueqQHpGZeb3sO/wx/0DoTNBeFUzFbr2WMwKqEagNuuM1T5Es XKeeYTJBQUfYn7QCt4RNsXe2kHiXI9GIBVlpGj6NpQGF5AlsX1yR9kgL4IS4UNyznEgf kTmAvxa1FKWx0yUGSMYa8zWkFYNyASqkvG/JvmUx7rfnJOdqvebU6pbgCSgL84TI69dh XZpXBbjimhUkJ+quvt+lfdNEq+vCxit0NqtT24VqW0yTbK6L1MGKIbYs8WDp4PA+5TBq dkTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=m7sg5SYHTqGCHyoZA1AqY9zcRYiMzOLVhRdfvlYv5ok=; b=IjbonFiPv+NBgOYib7zAGAmFJkviw3BLIvr30YIKM5CkovxFFfiq4O9INTDfFoaPt7 3+0jQC0NMQADL2droJBSO+6DrrP22pf+mRdJ+94HzJegDUfNG+Y/gxNoep9k4XB1BXzo b2aM1U/vlJPvTZpPQOMrRVRhgWTaImZJCNN1jqjkZL82RJQUXyStVaL3IOc0kYG8Bnhv 3Y1CUCibFfPkCuznU5QUITlK288WxJPvWg0H7LJ+IEdb56vGKZz3H+cApxBydaQnphmM ZZolxBZZxD0lqQmRVL8rLUhB4mmMn4zws/e7+FI9i00d1Pc6Yz5M6UiyahCckTMD85U6 H2ww== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l23si2054073pgu.34.2017.11.01.16.10.36; Wed, 01 Nov 2017 16:10:49 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933805AbdKAXIt (ORCPT + 99 others); Wed, 1 Nov 2017 19:08:49 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:52239 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933464AbdKAXIr (ORCPT ); Wed, 1 Nov 2017 19:08:47 -0400 Received: by mail-oi0-f67.google.com with SMTP id c202so6867016oih.9 for ; Wed, 01 Nov 2017 16:08:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=m7sg5SYHTqGCHyoZA1AqY9zcRYiMzOLVhRdfvlYv5ok=; b=Y3XA7ELHRo33+dPBDLyiw++6APW8HTcmKMaX7REIWPP66aNfs4+wFOIW0oOFTCHPJk YWoTZFcWWGrKiTgGyA92ixB6kwh2Fhgf/cqmJz/4mkzfruMDpceUJ3BpXCQlyY6j2uwO NsJZ0/5hc9O8kbgR/FrAMeTpoN5C/vFd0tcr+BbN1UBfEExbLcA6PpN3CKPAnxcbbO9N jbe3DPaeBqNdM8KBRsnK/IqFVzGDwDW5qqV0GNEqhGk3vBPsF85jcThqA2SoiOnUSs7M GNTdq+6kxqJknI+dM8BMm0iY0q0d7j3WJ3RHxo1r7dJWgDAvEMFqD4ARRcacMoCrtLwN /9SQ== X-Gm-Message-State: AJaThX445Xq/zfUZRxf8p752YcfFHMLvmtTSMGEBDjly/AeIKFNdXRBJ mmrljmHec6U9M/jwnufcQCxzLqtmUiE= X-Received: by 10.157.9.143 with SMTP id q15mr897351otd.95.1509577726929; Wed, 01 Nov 2017 16:08:46 -0700 (PDT) Received: from ?IPv6:2601:602:9802:a8dc::e174? ([2601:602:9802:a8dc::e174]) by smtp.gmail.com with ESMTPSA id v33sm858269ota.12.2017.11.01.16.08.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Nov 2017 16:08:45 -0700 (PDT) Subject: Re: [PATCH] staging: android: ion: remove redundant variable table To: Colin King , Sumit Semwal , Greg Kroah-Hartman , =?UTF-8?Q?Arve_Hj=c3=b8nnev=c3=a5g?= , Riley Andrews , devel@driverdev.osuosl.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20171031140249.25280-1-colin.king@canonical.com> From: Laura Abbott Message-ID: <4bff9c1f-8354-9e4e-4bdd-80a90450eb7b@redhat.com> Date: Wed, 1 Nov 2017 16:08:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171031140249.25280-1-colin.king@canonical.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/31/2017 07:02 AM, Colin King wrote: > From: Colin Ian King > > Variable table is being set but is never read, it is therefore > redundant and can be removed. Cleans up clang warning: > > drivers/staging/android/ion/ion.c:112:2: warning: Value stored to 'table' is never read > Acked-by: Laura Abbott > Signed-off-by: Colin Ian King > --- > drivers/staging/android/ion/ion.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c > index 93e2c90fa77d..a7d9b0e98572 100644 > --- a/drivers/staging/android/ion/ion.c > +++ b/drivers/staging/android/ion/ion.c > @@ -81,7 +81,6 @@ static struct ion_buffer *ion_buffer_create(struct ion_heap *heap, > unsigned long flags) > { > struct ion_buffer *buffer; > - struct sg_table *table; > int ret; > > buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); > @@ -109,7 +108,6 @@ static struct ion_buffer *ion_buffer_create(struct ion_heap *heap, > goto err1; > } > > - table = buffer->sg_table; > buffer->dev = dev; > buffer->size = len; > > From 1582782091066053669@xxx Tue Oct 31 14:03:48 +0000 2017 X-GM-THRID: 1582782091066053669 X-Gmail-Labels: Inbox,Category Forums