Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1472418pxb; Sun, 11 Apr 2021 21:23:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJFDI00xcoDysMNBlhQg2k3F34LxKQxkw+Z7CrnOx1+hWkpxuGHaWwNFbyopomw7onmgmK X-Received: by 2002:a17:90a:70cf:: with SMTP id a15mr26575699pjm.7.1618201424239; Sun, 11 Apr 2021 21:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618201424; cv=none; d=google.com; s=arc-20160816; b=S/92O0aj9M0UC8YtStlzhw9ALW7s78ptSK7lx8UJPGXRK+wbzTsCSbbhVQmB/LfQoe J5bFD+YmhFxcwnrnlrt7uHzecqiqmxYKS4rbM+rREMPizgbsPnH6q9R35/hqo8uIOdQi /T3+wc70CbRwc1nu8DXKtAueXQundz10lyCnuMVpyHRm8FmhE/N8mTvPbXujIH5uxNWc 3sZT/TRi0tVJqGYQOcaUeZcb8pzF5EFqmYCYwFP4lotG/iVp9tx0A89K6phJQuvNVTOB 14TDQAYC553H6mwNeS4IhdLNeyrbnMoz0/24j8uQbOsA1mlrzvw3HpLPQgx40uD9PPD7 HAlg== 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=EJq1nYTFTlLK5Tttla9p7VLBwhqJccUmP0o2uOmapKU=; b=iWGi35vP1RIUGN/BxWm7lkChYCvO/U8/5ZNkbm5r8QsNuVJza1450OyfnTJ8ImorX7 jXUTfl/vRM4yOiQtJX23p7D6aC1t+47FbtUHfoWSE+Ev6/EQWKtCdpfgGUgMRUpso4DM Bwgzr6uqO/Y31vh7iy8GkONr1rqpppzPV3tRFCiUrZbBk9/1fMLkvJGnXv3r2ys7AwnG mF1Y/nwtQMumvh/JxVqjaGz6sEFGD09Ol4wSzMyiPztSh+O1x5UrjQA4qnkdsh4WVjAQ ReRiOlVHPL9IGuyHw3DB1HODfg44pQ7e8BjFH96ZwaCL6AWHmPNW2KPnQvWOTB4AwTSh Ckig== 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 m17si12266938pgu.584.2021.04.11.21.23.21; Sun, 11 Apr 2021 21:23:44 -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 S229493AbhDLEDT (ORCPT + 99 others); Mon, 12 Apr 2021 00:03:19 -0400 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:48339 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbhDLEDP (ORCPT ); Mon, 12 Apr 2021 00:03:15 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UVD1aq6_1618200171; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVD1aq6_1618200171) by smtp.aliyun-inc.com(127.0.0.1); Mon, 12 Apr 2021 12:02:56 +0800 From: Jiapeng Chong To: bp@alien8.de Cc: davem@davemloft.net, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] ide-cd: remove useless variable Date: Mon, 12 Apr 2021 12:02:51 +0800 Message-Id: <1618200171-54914-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 gcc warning: drivers/ide/ide-cd_ioctl.c:212:6: warning: variable ‘stat’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/ide/ide-cd_ioctl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ide/ide-cd_ioctl.c b/drivers/ide/ide-cd_ioctl.c index 011eab9..22ec8b7 100644 --- a/drivers/ide/ide-cd_ioctl.c +++ b/drivers/ide/ide-cd_ioctl.c @@ -209,7 +209,6 @@ int ide_cdrom_select_speed(struct cdrom_device_info *cdi, int speed) ide_drive_t *drive = cdi->handle; struct cdrom_info *cd = drive->driver_data; u8 buf[ATAPI_CAPABILITIES_PAGE_SIZE]; - int stat; unsigned char cmd[BLK_MAX_CDB]; if (speed == 0) @@ -230,7 +229,7 @@ int ide_cdrom_select_speed(struct cdrom_device_info *cdi, int speed) cmd[5] = speed & 0xff; } - stat = ide_cd_queue_pc(drive, cmd, 0, NULL, NULL, NULL, 0, 0); + ide_cd_queue_pc(drive, cmd, 0, NULL, NULL, NULL, 0, 0); if (!ide_cdrom_get_capabilities(drive, buf)) { ide_cdrom_update_speed(drive, buf); -- 1.8.3.1