Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp658333lqe; Sat, 6 Apr 2024 19:28:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVz3LbNXJMauUPdD6oLEHL7Zktsn42v7CDoPO4YENCSke9URxqNOOdLB/Wy5f+ww5Jqr8FOwfPamREDuJ0UCaORnKziARrykJfxS99dJA== X-Google-Smtp-Source: AGHT+IEQctrcbhsPSBZw4qBpacP+y77iWFJKtRQa2Gxwiqo+OFF9TUUOMyZRlIBAN2ufKiCYmovX X-Received: by 2002:a05:6402:1f06:b0:56e:2b41:32c7 with SMTP id b6-20020a0564021f0600b0056e2b4132c7mr5594910edb.10.1712456906902; Sat, 06 Apr 2024 19:28:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712456906; cv=pass; d=google.com; s=arc-20160816; b=nzDl9lj/yCawHIGL1aT3julIdA4GdAJ24/QmWgDa6vJBeaFVaNXaHMMmNk2WFjOuus LCp1MbsJZq+72PTpNNx3x4sRxCNob1jvF2pNQpE+x937EA95G6yEo3Job8ZfctvRVUFE 35AwxN3uNxGdzO0+ZEsDmMiuGULPBGmZxQa4iWpnLYDYAhkPjkUi5nBVPFFEzwSBSRMo 5Z5r0JK8T+IiQWANh/tDz7X3tS2U6LIVCUp9tCaKdAJDjBqjUyubkn3OOBFpLJd38dHW DlVLxUVgUDsO/Fdj6a1o1Ea/kZFs2DHzCyDQtz6S69S5o2ZRJaFyfxnWqJPOk/xt1AqB lHdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=y/enGtSxuq6kBPcEkUjW0NrmRUA2NEWBWYihlUsxgpM=; fh=f1sJpXm1NNqixoQotXeEy8B186084/rue2pwnHMGNvY=; b=cenjOP0flKXZ+E01SEGKi/uInQT0ne62Scbdrn361k5kFVOyI8LAwMN1UQvJcyClGT N3gDXDN4bVL4LS7p4QpssBRN+fWmGlgd8Fmqiq/hyy3Dw73Bo+4zqjLUfK0aTh68p6vU hgXnSAlLnCd+QFecQc/KPl8SrJ4Y1AipmJxKEuCa0MQcPDMJbU7urMc3jXgllxP1ZbnD 7SUybuobiNP4AECIf7nuZbO9LHM9zS1UIUPeZqbRM2rGegRzgaw7EdhyCRiFuH7MGphw BpoXLUpc4V4LIh8lbLY8b87MgCnH3lAvMBnaVToK+s52AFwDnKb0mdpbpAL2ZS6Qs7Dc cU9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=LrRHmrMR; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-134133-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134133-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c22-20020a50f616000000b0056c2e48dab0si2294449edn.18.2024.04.06.19.28.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 19:28:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134133-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=LrRHmrMR; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-134133-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134133-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9F0AA1F222A1 for ; Sun, 7 Apr 2024 02:28:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0D2C184F; Sun, 7 Apr 2024 02:28:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="LrRHmrMR" Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA83B3D8E; Sun, 7 Apr 2024 02:28:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.110 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712456898; cv=none; b=KUQnHOhtbFDStSbcNvp7X0B4XsXK1iZ/SwxldGBe1hYGZK2InF+rvK+jGvwKfVn5+F2BOEaW8K8zc0y5nXzBfGr52FHN8hpr3e3bA38ZhuAzAN0ceJnbDR1STCzxXKXjOFj8C9gUxPDFDfw8Fo/O4BSn3L+Oazt0WMT/BfFMeA0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712456898; c=relaxed/simple; bh=5f0Zjyug+xD4ykOosxZAXg2bxN/+a/AUaQR9YyxDaqA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=fRWGe5zZrfrQhokOT4WMGBuQTvU6nwhWK5L5BuhO0eRpVkLVq5ak7T4m7/0rw46ZJj12MCC9nBTwiYeV1rLf+7wAm9colrfQhyn0c1f5cL/ZUTGsGlTttsblAFtRnvV2ZZlp3hrSaYFGH8F3jSdOZcyd9gNhMw5iNCL8c8TpPaI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=LrRHmrMR; arc=none smtp.client-ip=115.124.30.110 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1712456893; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=y/enGtSxuq6kBPcEkUjW0NrmRUA2NEWBWYihlUsxgpM=; b=LrRHmrMRyyuxZLEqR1GXlJerspPaUf6BKjIFrvhgFJlowrKX37ct9ojbRK5i1kpKMiV8ynnc6ROMKz7Hy8gYgxJYWqRMaGxjUeIhD1xkHyZbWXHl4txYrjWA+4osUTZTHulGluruOT1tkT2tEpoQi6mHJdcvvlmylW/feH2a0zM= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0W4-lTpa_1712456885; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0W4-lTpa_1712456885) by smtp.aliyun-inc.com; Sun, 07 Apr 2024 10:28:13 +0800 From: Jiapeng Chong To: jikos@kernel.org Cc: bentiss@kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] HID: Remove the unused variable minor Date: Sun, 7 Apr 2024 10:28:04 +0800 Message-Id: <20240407022804.27081-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Variable minor is not effectively used, so delete it. drivers/hid/hid-winwing.c:123:15: warning: variable 'minor' set but not used. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8705 Signed-off-by: Jiapeng Chong --- drivers/hid/hid-winwing.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/hid/hid-winwing.c b/drivers/hid/hid-winwing.c index d895c82a541d..0e224d1a6466 100644 --- a/drivers/hid/hid-winwing.c +++ b/drivers/hid/hid-winwing.c @@ -120,7 +120,6 @@ static int winwing_init_led(struct hid_device *hdev, static int winwing_probe(struct hid_device *hdev, const struct hid_device_id *id) { - unsigned int minor; int ret; ret = hid_parse(hdev); @@ -135,8 +134,6 @@ static int winwing_probe(struct hid_device *hdev, return ret; } - minor = ((struct hidraw *) hdev->hidraw)->minor; - return 0; } -- 2.20.1.7.g153144c