Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1541373pxb; Wed, 4 Nov 2020 11:41:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwiiPA+m/4iILyh3W5G/ZuyDuXcNztUIGnBK8rQBJdE0zefG/CCeI8lC4azSJxKq9jdTtiA X-Received: by 2002:a17:906:2683:: with SMTP id t3mr6291864ejc.414.1604518900156; Wed, 04 Nov 2020 11:41:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604518900; cv=none; d=google.com; s=arc-20160816; b=nr03cD9Q4lK2xGDym2hNWsDKfoMR2ntEGahXg1TPmrqZ6Eo/4CcJGadhCdd+6lnzGv kF7Z1S/fPOlc5cAXtO+ikxpwTWk4xnaakiBljyCvx7m6YiQm2Hn9iNdbToitRJSHIquK LUFWTa88whdabp2jVzW93LPP/gU7AEulzjjnWQDZDEOzHAFA3wuv7vkxyb0tDt/3JHrU mA7PhIqMJYzGPygtX1BbcA8FH+63XwBj0GpReXQYMRgv7a2FJRq+wVYxVPg5ENfQIUMa uXh0SNganHcrqW8Rklf2rAExL9IvFZSxmsIRo4KB0YZrOHufj5DLBBoqW/HjmjJrP++d j3SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wH+6ay3ML2IZuG2ItERyIkPsniEGNFXIQf0sfM9xhn4=; b=V7i9h5y+OEvpDZZuGXIOMFu3XdGyMZ9Cxf1YqHzIjb4tCyHdvUNut/sd7DNT4tH5Qr XdrbCxsZVDEpEhytcYv1Z8QEBQ/hxpAnC81OIoF2PmVxcrBLeO8S+G/TIYhV+1QskoAT PkfqZafIO1F51C1DcWSxLrEBX4b918+1LENMoDA92/kN0T1ZiBxNX9zkWjfGzeiNSKTO cROrc7kXfJ8rzr8IrbUCRO2vNCgw/DhshFFHjuwIRH4lkOtJGPkjW8OreP/g/P4nY3qZ MBsFzdI6HoYr3YAyVWDKtp6GydouskXPTCdSSuRrEo917Tm2DrLinkfQ+CptGiNzCi5g f/Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eDmsFAU7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn20si2452686ejc.324.2020.11.04.11.41.17; Wed, 04 Nov 2020 11:41:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eDmsFAU7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729382AbgKDTgC (ORCPT + 99 others); Wed, 4 Nov 2020 14:36:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728678AbgKDTf7 (ORCPT ); Wed, 4 Nov 2020 14:35:59 -0500 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF815C0613D3 for ; Wed, 4 Nov 2020 11:35:58 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id k18so3414038wmj.5 for ; Wed, 04 Nov 2020 11:35:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wH+6ay3ML2IZuG2ItERyIkPsniEGNFXIQf0sfM9xhn4=; b=eDmsFAU7R/9xFhQgOZLSoSX4Ozyo7emaZvpoFzlYhKNIkMDz+wFqWLCCvpdbQvhFq8 ru8XqVU6zE7B6/3rxJWElO0jg8aRU4ZGGMgcpUY/ybI4fJEJZtA5qHFG1/qPv3D5ao4l hvhhcYYE7pHbLhzxIlNiz78CcLLxGru7pDHJpWucJPZUkhA1yu5CK+VK047+eqUDGSCg zoLNP36tEymkyuyGc6kuetKvRHfnu1GgmFtvoZ6sIqj2pA3Hn171mu5/7KpEpFELkmDK OfeA39skAzWp4Kjb9IYniGlqNkpeZ310jPckyoU/haA5GL6VPZAAuQg1wr/tt5i+6xgW Qt/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wH+6ay3ML2IZuG2ItERyIkPsniEGNFXIQf0sfM9xhn4=; b=Wd2rzyLOsWh/XWZhD+Px7wATqu9dreXS2h9uSJEIG/IExPwNQqaEaaMNnOQMUXpiBv Vr0hnCkWj23C/XFV1GnDotTS+rGi+ljXFf2DAMD/kr5K6AUYY1mP8seovQ7lb5+alzT6 IcXw3u7zASlt2gcngR7m4mh9PsQgwUJxuVt7BPBMczcnBL8jYqbs9bM91UAbH+vEATg6 yUj0JMwZSPIxJwZVLY1UuqMn7q9LIpguue/6OjQuQcyIe2KhovPFRvoKKTGz3LWcJhHL K4TeZcQPtVzwpxvaIEWuvlbTXRpdOkWGUuHz2/Njy2sSi+07CMGc3y9R6nfIlkjCELuS EOFw== X-Gm-Message-State: AOAM533+TBiRqPBxuV05aUB0P+KOv871laXQ1IuWXrNuU9A6K+GrdMzW Ta/DX2P3zAATih2QpTmGs8BFlA== X-Received: by 2002:a1c:4b0c:: with SMTP id y12mr6696117wma.91.1604518557593; Wed, 04 Nov 2020 11:35:57 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id x10sm4034444wrp.62.2020.11.04.11.35.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 11:35:55 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Rob Herring , Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org Subject: [PATCH 01/36] tty: serdev: core: Remove unused variable 'dummy' Date: Wed, 4 Nov 2020 19:35:14 +0000 Message-Id: <20201104193549.4026187-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201104193549.4026187-1-lee.jones@linaro.org> References: <20201104193549.4026187-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No need to have a dummy variable here. Fixes the following W=1 kernel build warning(s): drivers/tty/serdev/core.c: In function ‘serdev_controller_remove’: drivers/tty/serdev/core.c:791:6: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable] Cc: Rob Herring Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: linux-serial@vger.kernel.org Signed-off-by: Lee Jones --- drivers/tty/serdev/core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/tty/serdev/core.c b/drivers/tty/serdev/core.c index c5f0d936b003a..fecc28a73b3b2 100644 --- a/drivers/tty/serdev/core.c +++ b/drivers/tty/serdev/core.c @@ -788,13 +788,10 @@ static int serdev_remove_device(struct device *dev, void *data) */ void serdev_controller_remove(struct serdev_controller *ctrl) { - int dummy; - if (!ctrl) return; - dummy = device_for_each_child(&ctrl->dev, NULL, - serdev_remove_device); + device_for_each_child(&ctrl->dev, NULL, serdev_remove_device); pm_runtime_disable(&ctrl->dev); device_del(&ctrl->dev); } -- 2.25.1