Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp18935688ybl; Fri, 3 Jan 2020 12:04:41 -0800 (PST) X-Google-Smtp-Source: APXvYqz95nEj8bRtH0wfUGFgdjbmHMsHzADBbU+2J1qiA4A84X0QHaNpYROS5xC45aFECcOK6hhF X-Received: by 2002:a9d:7cd0:: with SMTP id r16mr104440332otn.50.1578081881431; Fri, 03 Jan 2020 12:04:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578081881; cv=none; d=google.com; s=arc-20160816; b=Klbjva8sW6SAZD/w5Zffb1CfDEhQunzC2WpW++OYpAhEGqwxmL58fuh7PpDytMZ8Xv p0EXAUPJvVdJHkZXpnJAaEyVASoG6XRDXMxse2o7x54mtVBUyzXO4emexcbvEha8eGZT N+2lnE5yWPNvTUQlbDs/k64fyi/Pv9ieZoFEOM921zerjcd5rLtBzHfDa1kMerVSgddX c+fGdvVPM+XVQ9wyNik+06zHUEJ7uUKJu+ghCCVRaXpXgWF6++5UGeGRJdGxAv9f60zO iyDXjR2PEbTv898K6RGwyrYemPGbPh2wAYRCgVshAhu2o/iwiSDDQLuZA+DTNw1ARdr6 U6JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:dkim-signature; bh=M6xBo1xbVNvJspjWjJb82T/G1NkjpTBJRiyiyckkCkQ=; b=b5p/H1HKi8Qbmiy0ud4iPDWD0bKIJPaW52xvcHSaj7j013GIk9e3MQij6TA016pcrf Aobyr1I7cf1tKPIBrRpLlIVGnb9mUa6Wr11a29Rsj8cQNr+V4blE6e7blHiXgGqPpLy5 B53VqxRpfLlMp9HTApQuCSQU2UrZEtbIfYQiSM4W2aO83wVjuQ/p6RtBXH/x5P5GuAIB /sghP1pGzVlCa2QM9R08av1wGlgD7NVIFMTSXZ2etppWVeKL3Umxpfo9A9Z8HIFKdzGC xt8Kp1tgOA/qiBQgG3Q/N4CSOZpe5e7kHLyRPLHT7hSYemTgXDAolZBofm2w8FK1sk/v bjzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YMTo8D68; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si31158942oth.267.2020.01.03.12.04.28; Fri, 03 Jan 2020 12:04:41 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=YMTo8D68; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728757AbgACUDc (ORCPT + 99 others); Fri, 3 Jan 2020 15:03:32 -0500 Received: from mail-vk1-f196.google.com ([209.85.221.196]:43978 "EHLO mail-vk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728611AbgACUDb (ORCPT ); Fri, 3 Jan 2020 15:03:31 -0500 Received: by mail-vk1-f196.google.com with SMTP id h13so11026672vkn.10; Fri, 03 Jan 2020 12:03:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=M6xBo1xbVNvJspjWjJb82T/G1NkjpTBJRiyiyckkCkQ=; b=YMTo8D68OOL8TL8FneG5BdF/ZyR01hslkeKqJyJwGhb6u7r7N4gFV+tRGVFSc1H6rq /n5UPXj47XkJ93IyCiscHAQ9AYYx0zegegCTyNWVgY5KLPdtL8asWb699O2wc8S9Cyli YSqSveRhKpV+qIZLH8brZj+7r3Dgbv1sn6mAQwcYVdPC42K23ZBS/UE2csqmVbYG5mKH FTvomDpN64Cjp1oATZFvh2PeuzJ5eex4mHNV0JvYyEIf+T0VZxEJ99mcoqemZaJxjTTj EPl4uM9aVBRbSnPpc0T1bzPZ6lPIEOsXG6wFnlhYs65AQ95f5r/hsxj4ZqNQH+WIZv+F lMrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=M6xBo1xbVNvJspjWjJb82T/G1NkjpTBJRiyiyckkCkQ=; b=FS/POOAF5ef5jM1X6AycH2IHi+sfjEDEyMXhny1KTV8+Z2l2gQ/McsTq5LFE65jqIc RMe/s7eFJyC/T3vC0GbQEru9SeI589LbYzbh/9rsPX57ICVbX1cYQZrHQ5g4cqd55GnW Md4WvToI5sAeVm+nT8GejWDB13Xqqjc+b//TdgbawGQRkTIZLQLZz8ziXhsg7fZXwUfE x85Gach8BSpxgqFu60WKQeRhXk4qOojeBguWHwC5GxQT+y7NGBNkAAKeCLr04XQsFVIk 1y1zQWX87e0OLkEOnHT24BibS1+F/4PnxQb2AokFsQYBqfQJdrvDZxuIaLdDsbXn1usW v4+w== X-Gm-Message-State: APjAAAWa4te6ogtJx3aeVXJ82ZuZ2nqEkjSsvXHTZMltzKq+88e2ZcLp v94blV8zeX4Id4bBtV3KoOgWXx1qyvJyS+cZgg== X-Received: by 2002:a1f:c686:: with SMTP id w128mr51615376vkf.34.1578081810377; Fri, 03 Jan 2020 12:03:30 -0800 (PST) MIME-Version: 1.0 References: <20200103121907.5769-1-yukuai3@huawei.com> <20200103144623.GI6788@bombadil.infradead.org> <20200103175318.GN1397@lunn.ch> <20200103193758.GO1397@lunn.ch> In-Reply-To: Reply-To: whiteheadm@acm.org From: tedheadster Date: Fri, 3 Jan 2020 15:03:19 -0500 Message-ID: Subject: Re: [PATCH] net: 3com: 3c59x: remove set but not used variable 'mii_reg1' To: Andrew Lunn Cc: Florian Fainelli , Vladimir Oltean , Matthew Wilcox , yu kuai , klassert@kernel.org, "David S. Miller" , Heiner Kallweit , Jakub Kicinski , hslester96@gmail.com, "Michael S. Tsirkin" , yang.wei9@zte.com.cn, netdev , lkml , yi.zhang@huawei.com, zhengbin13@huawei.com 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 On Fri, Jan 3, 2020 at 2:40 PM Andrew Lunn wrote: > > > And since more reviewers are on the same boat, the fix should probably > > look to eliminate the warning by doing something like: > > > > (void)mdio_read(dev, vp->phys[0], MII_BMSR); > > Yes, this is the safe option. I have actual hardware I can test the proposed patches on, if desired. - Matthew Whitehead