Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2326873ybi; Thu, 4 Jul 2019 08:56:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqybZeqLy3kjFfSRzeal1t1DChFve7L6U0pgVmfXskkI8kJ1BR/q6LVe1WmCjCWnRlxRuwzc X-Received: by 2002:a17:90a:f498:: with SMTP id bx24mr255741pjb.91.1562255792573; Thu, 04 Jul 2019 08:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562255792; cv=none; d=google.com; s=arc-20160816; b=CNREG6fKRiPiKemd49IYYpgXxZqtxx+13s6K611NrtSfURSDunY7CNbDwonGM6Fzsz RiSC/7Fib2MoWGYVb/16Q2cGn2m/DThntmJ2QmEOmQGwdxm27X7Nc4WcqlS4yt5siDpp A1dphf5Ohk5GoFmqo2NnwrwRKKyz+3mIWsTHAAzxjGvwQj3LEepTJftEr9Zk/rdho6wA kEJbRQOh5n3GdCHDPIN32LYdpedjxTekAIq5kcM77Tyf7mU942YUvKVsR3wUPZEYmqoW pkmtdu0umyg/kIA+DCsTuVBZqKzs1dPj280zsGDeeQCpXMNGrNnA7qhsRmhVwLFV3C87 PEqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=mPnkcAZw82aZVs9Z9rG4+ggBDTzCBZWCGqYWdqaNVKo=; b=S2Yb1PLsUGqfS0VnRUSTk0DtirJccNbnL+jZ8QDizsuGt6pCTKTUPl/ez8X2XKbZqu BKZZoBm2UVDCIcIJUtm16mCLxYlzpL4PHCXvkSAfAdnVCKIleKDR4z4k40K5dCxtQ7SY Alq3MQK5eJ+DLdVvzYHQT++6jAT7K8kAaSTK1jsdHCLt6lq2WNwRR7p3ttDu3vAQh16V bcpn436Ii2SKhvwfhkwYCb8UpcM03kzpOlx8NgVxlJdwqV9eVnAsnHR42dtt6S9BUE8s Cl9VHObl0WYeRd0f7e/FrC90inaQdPulJTORC+hvuwwn6zyy7gEhA5Ja6SLVuNZlYQWt /ZZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@animalcreek.com header.s=mesmtp header.b=UoKXTf63; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=dzUkP6Om; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f91si5750724plf.300.2019.07.04.08.56.17; Thu, 04 Jul 2019 08:56:32 -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=temperror (no key for signature) header.i=@animalcreek.com header.s=mesmtp header.b=UoKXTf63; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=dzUkP6Om; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727012AbfGDPzu (ORCPT + 99 others); Thu, 4 Jul 2019 11:55:50 -0400 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:47323 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726957AbfGDPzu (ORCPT ); Thu, 4 Jul 2019 11:55:50 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 9087918E2; Thu, 4 Jul 2019 11:55:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 04 Jul 2019 11:55:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=animalcreek.com; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=mPnkcAZw82aZVs9Z9rG4+ggB DTzCBZWCGqYWdqaNVKo=; b=UoKXTf63vhblNFTYDD5ovIuLnfoPRIkcdpE3lDTX pp6uCs71cXKAbTBfaDi2DPqUrONtik3P0RQGNyx+i6k/alDjwtc3mWkBfObiRhfP wywdn4VSdZRg97zey6ECbueW+PTxpFTMVVptQiawFpUqe71zwstTuWP8iRNLhdiA Azg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=mPnkcA Zw82aZVs9Z9rG4+ggBDTzCBZWCGqYWdqaNVKo=; b=dzUkP6Om+KPVTzCTzYlfku M7nWyC/cKVzyjsFPHkrAkHb76daPECLWsKjlgBcUiiCrWN4IpzK5VDSLV2E7rXxw tCQqoLkTeMxH2fvKcWE0aDtY7OlJ4Dd5CVuY7Om+YbvRd2842eSQdntgNA8XwmBk l+WQj4QM2/4YGZqp9jaYbCzGpAKhS2TN6Vo2j83QgdQziuPY+nVfZ2Bn+zje8c/d aqZMPfO3hLC6/koOm0mjgJpBAo61rLVoZhQ4mYYxCzq5+u4l2chGe82Vr8/fetoe nv3IPtOZvGYP5zbiLC5ZSSTJG8IXJxnPUyVcNzKM0DGawGmrRdWE2er5U+SxuiQg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrfedvgdeljecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujghofgesthdtredttdervdenucfhrhhomhepofgrrhhk ucfirhgvvghruceomhhgrhgvvghrsegrnhhimhgrlhgtrhgvvghkrdgtohhmqeenucfkph epieekrddvrdekjedrleehnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmghhrvggvrhes rghnihhmrghltghrvggvkhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from blue.animalcreek.com (ip68-2-87-95.ph.ph.cox.net [68.2.87.95]) by mail.messagingengine.com (Postfix) with ESMTPA id 6D81D380088; Thu, 4 Jul 2019 11:55:45 -0400 (EDT) Received: by blue.animalcreek.com (Postfix, from userid 1000) id 56FC1A22246; Thu, 4 Jul 2019 08:55:42 -0700 (MST) Date: Thu, 4 Jul 2019 08:55:42 -0700 From: Mark Greer To: Colin King Cc: Vaibhav Agarwal , Mark Greer , Johan Hovold , Alex Elder , Greg Kroah-Hartman , greybus-dev@lists.linaro.org, devel@driverdev.osuosl.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: greybus: remove redundant assignment to variable is_empty Message-ID: <20190704155542.GA28490@animalcreek.com> References: <20190704133031.28809-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190704133031.28809-1-colin.king@canonical.com> Organization: Animal Creek Technologies, Inc. User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 04, 2019 at 02:30:31PM +0100, Colin King wrote: > From: Colin Ian King > > The variable is_empty is being initialized with a value that is never > read and it is being updated later with a new value. The > initialization is redundant and can be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King > --- > drivers/staging/greybus/audio_manager.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/greybus/audio_manager.c b/drivers/staging/greybus/audio_manager.c > index c2a4af4c1d06..9b19ea9d3fa1 100644 > --- a/drivers/staging/greybus/audio_manager.c > +++ b/drivers/staging/greybus/audio_manager.c > @@ -86,7 +86,7 @@ EXPORT_SYMBOL_GPL(gb_audio_manager_remove); > void gb_audio_manager_remove_all(void) > { > struct gb_audio_manager_module *module, *next; > - int is_empty = 1; > + int is_empty; > > down_write(&modules_rwsem); Reviewed-by: Mark Greer