Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp269867pxj; Fri, 14 May 2021 03:04:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2jN78l1HPEvEyEpk5phPDbuhldrAjwrGGjX9hGtbLD1dAqrxBsyn3pNTWRiu04pWgXPfg X-Received: by 2002:a05:6e02:b41:: with SMTP id f1mr42427340ilu.212.1620986655088; Fri, 14 May 2021 03:04:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620986655; cv=none; d=google.com; s=arc-20160816; b=bt1G4LimiuWO3NC67ioyEOFOFnRM00hA2DyoZuU+jHRYXOImx0bqTPiI9QHxpFToIM OqYHZRKzO+Co5ggVzn9ygyni4ECXjFj9xahbSJQcdtgQwBOM+J6ihlFO+cB/XIccfLYe 49RkLguxH6lnOjlgo/VWPuAB3CjzMDow+zLgbMYLXgqdn7R4d/gVoBF197rngcDWxUtF igD04a8AKWNYCGobeE/XKAWlh1d+9zJJ0tGC9GyDSpYldj+iK6EIUYYgqpTq/+jJF4Ce BXM97Kpvs2Ti09/QhGF8mKNGOv1padc+o4eqpNNVf6QuPAD6zVLKYvOqtx+S8JvBfhZ6 Mt8A== 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=rHaiWKsM6hQ+7s50zhl0mFGq+gafGZV+YYNpcMJIjFU=; b=heGXFV5cuaPsIkCEojkRet0Jbe6YPzTS84BPFBvNvxHPzxF81TK3Al3neX6nJCqCcj xmaJHodzsgbrtBV6CuEvydH0NNboyH5e7n4px/G4si4azPd0b3Tg8Ugwqw2IG9LJMReB aTmnvMxxXgFTC23DgJ3bij13ISZAPQDcK5EoGgbPYGIe33kGjAVxlVAbXw+gGIC8tQmd XgjwmlH/dXqn6vSESYXJJacl/OcUXgPXMG0vPkCvEJQlRQg+BaH8jR/613MCZxgKjiOE cj7sRXLL48B/FT6xp8kYbJWGeGHCHTJ3Zptcx4s/WcDn97cjbZFViwmcB9iUU1JxDyj/ vSQA== 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=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o8si6887335ilu.133.2021.05.14.03.04.01; Fri, 14 May 2021 03:04:15 -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=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232637AbhENHaM (ORCPT + 99 others); Fri, 14 May 2021 03:30:12 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3757 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230462AbhENHaM (ORCPT ); Fri, 14 May 2021 03:30:12 -0400 Received: from dggems703-chm.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FhKn53sjFzqTtC; Fri, 14 May 2021 15:25:29 +0800 (CST) Received: from dggpemm500004.china.huawei.com (7.185.36.219) by dggems703-chm.china.huawei.com (10.3.19.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 14 May 2021 15:28:53 +0800 Received: from huawei.com (10.174.28.241) by dggpemm500004.china.huawei.com (7.185.36.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 14 May 2021 15:28:53 +0800 From: Bixuan Cui To: CC: , , , Subject: [PATCH -next v2] =?UTF-8?q?staging:=20comedi:=20Remove=20unused=20variable?= =?UTF-8?q?=20=E2=80=98min=5Ffull=5Fscale=E2=80=99=20and=20function=20'get?= =?UTF-8?q?=5Fmin=5Ffull=5Fscales'?= Date: Fri, 14 May 2021 16:52:14 +0800 Message-ID: <20210514085214.53941-1-cuibixuan@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.28.241] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500004.china.huawei.com (7.185.36.219) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The variable ‘min_full_scale’ and function 'get_min_full_scales' are not used, So delete them. Signed-off-by: Bixuan Cui --- Changes from v2: * Delete function 'get_min_full_scales' drivers/comedi/drivers/jr3_pci.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/drivers/comedi/drivers/jr3_pci.c b/drivers/comedi/drivers/jr3_pci.c index 7a02c4fa3cda..f963080dd61f 100644 --- a/drivers/comedi/drivers/jr3_pci.c +++ b/drivers/comedi/drivers/jr3_pci.c @@ -186,19 +186,6 @@ static void set_full_scales(struct jr3_sensor __iomem *sensor, set_s16(&sensor->command_word0, 0x0a00); } -static struct six_axis_t get_min_full_scales(struct jr3_sensor __iomem *sensor) -{ - struct six_axis_t result; - - result.fx = get_s16(&sensor->min_full_scale.fx); - result.fy = get_s16(&sensor->min_full_scale.fy); - result.fz = get_s16(&sensor->min_full_scale.fz); - result.mx = get_s16(&sensor->min_full_scale.mx); - result.my = get_s16(&sensor->min_full_scale.my); - result.mz = get_s16(&sensor->min_full_scale.mz); - return result; -} - static struct six_axis_t get_max_full_scales(struct jr3_sensor __iomem *sensor) { struct six_axis_t result; @@ -504,10 +491,8 @@ jr3_pci_poll_subdevice(struct comedi_subdevice *s) result = poll_delay_min_max(20, 100); } else { /* Set full scale */ - struct six_axis_t min_full_scale; struct six_axis_t max_full_scale; - min_full_scale = get_min_full_scales(sensor); max_full_scale = get_max_full_scales(sensor); set_full_scales(sensor, max_full_scale); -- 2.17.1