Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3339917pxb; Wed, 14 Apr 2021 03:14:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyl0PAHoCbuoeS1FhcNe1vZrkrncEBP1abRKBpmNrGlZ7QpwrP0Ikq9VkYfsz7BIIiog+if X-Received: by 2002:a17:906:7842:: with SMTP id p2mr38374944ejm.87.1618395254283; Wed, 14 Apr 2021 03:14:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618395254; cv=none; d=google.com; s=arc-20160816; b=AQ+BUlH61DsktsW/a2eazjQkT79e4NM/T2MVTqu2hndZCVbIjkrzic32ejES2SxxFS NWUJ3hD/VCTB27FGmLBIzvVPLL1YlvDTMPBx+H61Wyu4SKSwieB4m2NBCwigKtfN5i77 jgF34zskcnm5ordS7YDYk+5+pEw5NNB4I7P3Nq4qM+u88SERO5d0ctOGa4XLQ24hY29T 22/D9Ggye7+dDG5gzh4AVxGSYqHS+fN9RuWosjyIE/64CU5yZhhYQzAsYu5NeinO7aOJ 5UMDYROh86KJ/cm5kc2W2diBnFM2p1B41kjfcFH1T9IMH3TsyoX9fncaOUQfZyCIy5MU 6isA== 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 :message-id:date:subject:cc:to:from; bh=WIMMqc8ROZLsR+tGsR8Af2YKnEvZp5sxxMGJVk3Kq10=; b=JcnaavE5ln8HW7rmrmUygqCZZW2+83yv1ZHnk8P0xSAcm/1vgazP3c7zeqkgiRkiM+ /lxUqBy5ezbx2LfCZi0ME4FVTsZSVbNXKGp9s6VXyOLdmJ+kuMILsdNJW7zjzTHbAsSa W069wcgmzc0XXju91uxIzLU+4pomHTJRnTDB/zpxy0AM9LiZH78IDWJIYJnKq/zMlf0y SY+EeUt40v8VFRgULfSsjGM4J1iRBeG0aPhZsVzU9ei9iMrBPVO9S0jlV3/AsGQ8EMf3 lL3bqzTFMUV9lUeU87LFLWyrxRKdRxGBOlta7NZXA5+dhFKL7I9C8FRgy1yla/JXoxH5 IUEA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g1si742244ejh.285.2021.04.14.03.13.51; Wed, 14 Apr 2021 03:14:14 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236716AbhDNCWR (ORCPT + 99 others); Tue, 13 Apr 2021 22:22:17 -0400 Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:40327 "EHLO out30-56.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231475AbhDNCWQ (ORCPT ); Tue, 13 Apr 2021 22:22:16 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0UVUx26c_1618366909; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVUx26c_1618366909) by smtp.aliyun-inc.com(127.0.0.1); Wed, 14 Apr 2021 10:21:54 +0800 From: Jiapeng Chong To: maximlevitsky@gmail.com Cc: oakad@yahoo.com, ulf.hansson@linaro.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] memstick: r592: remove unused variable Date: Wed, 14 Apr 2021 10:21:43 +0800 Message-Id: <1618366903-94346-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 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 Fix the following clang warning: drivers/memstick/host/r592.c:363:6: warning: variable ‘len’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- 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] = { 0 }; - int len; if (kfifo_is_empty(&dev->pio_fifo)) return; - len = 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