Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1302655pxk; Fri, 4 Sep 2020 06:16:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMD7RR68BGmt+vHXw1DspbUNVSOzCZXEOGGqvsQLYlHq5AdKMdwX6oXbT6q9r4coIf+iaK X-Received: by 2002:a17:906:8695:: with SMTP id g21mr7047050ejx.504.1599225389850; Fri, 04 Sep 2020 06:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599225389; cv=none; d=google.com; s=arc-20160816; b=kmmPvAVWjtfFMGgGzQSfppBj1TpR3EesoiBYudrv3+aeNxZJOD1wa85hExKSlTlH8e xUju1FY8u2U2yrN/KV7IwZeNOZdHJl56LxpZTguhXWob28Ku8K/sFaHOBSmezc/0TBd3 4LyjervHWbqfpCwvm1lRxVFdx3pwqT2kAMnA7XMjrMF5JEdWsg9llJaxJIlLoHQ6smV0 WJL8RXeJ0YHBrSg/j1aE7wkK6h6lZclaaQ0IMSwVn+ODZkJiWo5Y5Utt5q8jPITWw9/Z ikPf7Z5kk9BHwqm3FK1qX18WxADxmS623y76QZtUxiStbib65Mocs/P3nQw4dzf/mPfC fwZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=e6VhBeQTzhkaRIBzkfq2q/BhltysfmdPG2iVo5s80/M=; b=LqF8ny0UCe/lIggaKnogvid9vZfrhG2Ong9kpaC8DL3f5Yfi6cxUhl+jL/3/RBrh2J blLyKWVJ7yB1zs5IefztA6oVceT6T7CcDvBmCJ6JDZtgf1VvM7vt18HsoE57Z5QAK8MQ kB2+KvCOQFFHNNYDAXAUcRAG/I8csIRTnXFR6XHhHkMI+6u9yKR0VxMsS7UWHjA8WXeR DWjL+q/VZwakrEet5VKLrIMinxXicBbwG4oewUWttwzNoUWJiJOa783uP83pB+VU4S74 2hIAJygMCouAooTLkbfd/iYIhtdi13dhL1QrXPS4EK82Fa21W/lAd7rUrQEj12G+dpEh 5mSw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si51835ejr.206.2020.09.04.06.16.07; Fri, 04 Sep 2020 06:16:29 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730328AbgIDNPd (ORCPT + 99 others); Fri, 4 Sep 2020 09:15:33 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:40260 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730010AbgIDNPZ (ORCPT ); Fri, 4 Sep 2020 09:15:25 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 521B7D1ABC89FC3C3E6C; Fri, 4 Sep 2020 21:15:22 +0800 (CST) Received: from huawei.com (10.175.113.133) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Fri, 4 Sep 2020 21:15:19 +0800 From: Wang Hai To: , , , , CC: , , Subject: [PATCH net-next] can: peak_canfd: Remove unused macros Date: Fri, 4 Sep 2020 21:12:47 +0800 Message-ID: <20200904131247.23021-1-wanghai38@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.175.113.133] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CANFD_CLK_SEL_DIV_MASK and CANFD_OPTIONS_SET are never used after they were introduced. Remove them. Reported-by: Hulk Robot Signed-off-by: Wang Hai --- drivers/net/can/peak_canfd/peak_pciefd_main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/can/peak_canfd/peak_pciefd_main.c b/drivers/net/can/peak_canfd/peak_pciefd_main.c index 9469d4421afe..5f0f39d2fa28 100644 --- a/drivers/net/can/peak_canfd/peak_pciefd_main.c +++ b/drivers/net/can/peak_canfd/peak_pciefd_main.c @@ -83,7 +83,6 @@ MODULE_LICENSE("GPL v2"); #define CANFD_MISC_TS_RST 0x00000001 /* timestamp cnt rst */ /* CAN-FD channel Clock SELector Source & DIVider */ -#define CANFD_CLK_SEL_DIV_MASK 0x00000007 #define CANFD_CLK_SEL_DIV_60MHZ 0x00000000 /* SRC=240MHz only */ #define CANFD_CLK_SEL_DIV_40MHZ 0x00000001 /* SRC=240MHz only */ #define CANFD_CLK_SEL_DIV_30MHZ 0x00000002 /* SRC=240MHz only */ @@ -116,8 +115,6 @@ MODULE_LICENSE("GPL v2"); #define CANFD_CTL_IRQ_CL_DEF 16 /* Rx msg max nb per IRQ in Rx DMA */ #define CANFD_CTL_IRQ_TL_DEF 10 /* Time before IRQ if < CL (x100 µs) */ -#define CANFD_OPTIONS_SET (CANFD_OPTION_ERROR | CANFD_OPTION_BUSLOAD) - /* Tx anticipation window (link logical address should be aligned on 2K * boundary) */ -- 2.17.1