Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp715984pxb; Thu, 15 Apr 2021 05:04:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJys+Kjg7wJ6CYh1kF7durVlzY1DPbs8ZqXvQhN5wC0urTm9MzibBSG1MTPpolPj+DbtC4PD X-Received: by 2002:a63:5626:: with SMTP id k38mr3337806pgb.128.1618488240152; Thu, 15 Apr 2021 05:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618488240; cv=none; d=google.com; s=arc-20160816; b=OgGX/Ym6RvZpBLAmKAAfOm+wQKWK90hbzbL9aMNeH73vEXv1a+PUSNY7T0FTzuB8A+ cGCLvvtMeFT+e7l5+NBvushJmeZxpqkDDFxg4V9uOVvA4WltLiALH+YoFSasJfZVtuf2 9iD5NvCCrCbBWzWgpVNQ9c1/fkqPg6uGLNbLcWetLn76N5S0k+EyuGsRuhuu2zu9mz1V wj4oO+oze59+Uc78pd9Kz91La96locOciU5nBYg1R+XiB3UPIgX2ADJKHFhr6MTnz2h6 OrBjgoXaeMvn11v1CQmWKyYS+7PfVi+tZxvPsHsI42SDCtxLaZD8SN7at2yue/v0EA8X ip/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=3QIBHoMu5EbRCWYG2M6emH3zmg/eaWsR3cuaHJ11glI=; b=uAmkpVZsNGg7R0KCrxyVWurcMRUIzhJm4alol7T21hjDbHqQvhk4EN7ZRzEf9cxuCm TQr7yWZJ0jSNUI4RkOGF77zGrq+jXEJmnfKxIHjD9pzPYMfS1FUE0mnsMfA6qHQyp/EY Qa7vAReCaXJGthSwBa4ZfL9KRjQL1B1z/jUx11dUgJaenri/NjyWaGocCll8Az/URoFo YeLkqwpbOL6Kq7TBzFJyFhjQjOn9/xfhk21Lc87fM7q9oqK6lwb78vJBYuu0lmYSSmf/ Pc46J9RRn3/pUIa7WivHSRHzMbbBMYlzM7t5s+V55FqkZAW2EO1mDkCNrqgxw+6Gdwm+ 8FdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="dCq0K9/n"; 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 34si3485111pgw.301.2021.04.15.05.03.45; Thu, 15 Apr 2021 05:04:00 -0700 (PDT) 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="dCq0K9/n"; 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 S231482AbhDOMDc (ORCPT + 99 others); Thu, 15 Apr 2021 08:03:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229943AbhDOMDa (ORCPT ); Thu, 15 Apr 2021 08:03:30 -0400 Received: from mail-vk1-xa35.google.com (mail-vk1-xa35.google.com [IPv6:2607:f8b0:4864:20::a35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F431C061574 for ; Thu, 15 Apr 2021 05:03:07 -0700 (PDT) Received: by mail-vk1-xa35.google.com with SMTP id k12so1787666vkn.7 for ; Thu, 15 Apr 2021 05:03:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=3QIBHoMu5EbRCWYG2M6emH3zmg/eaWsR3cuaHJ11glI=; b=dCq0K9/n/8M3yF4cCAveE3AoMzabLitZqdBYH8zNnSq6DC+oQNf/94IpSchjfwNDO8 +TgGhKuYLKQa13hgyOXoNdvK+QhiJIrY2Zcj/+NPHSp53nvLwJUdJhKimCFzoZWW/t3B SG9rm31+d8AsTFrq7l4Vm6zCTBfIosV4/z0x35vT7qHU5dHJus6S2xTGOJxpWBhDDB9G ILR6H+W12/pQX1if/0zUZve7ibqCQ6JG149oFGqQkIA5k+Wy2KFwQimHF6qA3ZyADtDY Wrls8HjwC1XTNFoLIpYNPBBHQ3hevtDYd678PXyh808MaPKbPpuhAdvrnne85j2m7Sjf ypVg== 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:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=3QIBHoMu5EbRCWYG2M6emH3zmg/eaWsR3cuaHJ11glI=; b=rM5q7I/Z/j+Sp5pWh6nFpaGBMfactXeOZAvYGKn7O9przn5ajUAySWdRH/r73ERPX2 juqnvoesdhlNQk7LYEEVQMarUr8dB68RgKq33O4Mh95ZPF3Uiy/Rip2PQKczjcJx0a4d mRMbGJZdFCWixAf/SDnRs/Df4E2259yBR7TIQsprFDfVirSVdCnB43SxnLFnabW6czCR LTF1GpYU/apWAe/oQQDCaLEwdxLfO5KmsRX8th1+/1Ll0nXt65gpeVR2vdX85rkVu9zv 9LrcY+Pz9uy1B+MOjj0bE3nL5d07YZBdgvH192P8jSKqvTigF7Yui78Mq00OwZBLbU5U IySw== X-Gm-Message-State: AOAM530/oZS3Wo1StI5zanwxfVx4Kr2xYGQ+xfHL1sSzWrUf365sWTO/ JNlD1H7+eFF2e8XXBQr2E7zuAna3a6W3tFBPeHRxJA== X-Received: by 2002:a1f:8d14:: with SMTP id p20mr1432935vkd.6.1618488186344; Thu, 15 Apr 2021 05:03:06 -0700 (PDT) MIME-Version: 1.0 References: <1618366903-94346-1-git-send-email-jiapeng.chong@linux.alibaba.com> In-Reply-To: <1618366903-94346-1-git-send-email-jiapeng.chong@linux.alibaba.com> From: Ulf Hansson Date: Thu, 15 Apr 2021 14:02:29 +0200 Message-ID: Subject: Re: [PATCH] memstick: r592: remove unused variable To: Jiapeng Chong Cc: Maxim Levitsky , Alex Dubov , linux-mmc , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Apr 2021 at 04:21, Jiapeng Chong wrote: > > Fix the following clang warning: > > drivers/memstick/host/r592.c:363:6: warning: variable =E2=80=98len=E2=80= =99 set but not > used [-Wunused-but-set-variable]. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong Applied for next, thanks! Kind regards Uffe > --- > drivers/memstick/host/r592.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/memstick/host/r592.c b/drivers/memstick/host/r592.c > index d2ef463..026fada 100644 > --- a/drivers/memstick/host/r592.c > +++ b/drivers/memstick/host/r592.c > @@ -360,12 +360,11 @@ static void r592_write_fifo_pio(struct r592_device = *dev, > static void r592_flush_fifo_write(struct r592_device *dev) > { > u8 buffer[4] =3D { 0 }; > - int len; > > if (kfifo_is_empty(&dev->pio_fifo)) > return; > > - len =3D kfifo_out(&dev->pio_fifo, buffer, 4); > + kfifo_out(&dev->pio_fifo, buffer, 4); > r592_write_reg_raw_be(dev, R592_FIFO_PIO, *(u32 *)buffer); > } > > -- > 1.8.3.1 >