Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1941373ybi; Sat, 1 Jun 2019 07:04:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAbGMRcPuRmjyOcj4OCf0ywqA2T/LB6/uWGShZ/OCpC6TpEgb9/+DPOSQSugxKl61ovYXs X-Received: by 2002:a63:6848:: with SMTP id d69mr16045406pgc.0.1559397861243; Sat, 01 Jun 2019 07:04:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559397861; cv=none; d=google.com; s=arc-20160816; b=Tm7M3ibDZZenhRLHkjbHxRLa1z++OetMPcPl7cSGkqLWDcnF2j+pLU63PjSDk7kZgO atO5PnzzyJ6QUypXZtf0NfsrXq8PK8pwXpyImwBSPH+UAK/zfVrSWRFx9Pj5TzaEMLSr i/ckyTds4XIEbrnCC+QcEkLsPsAl7psdx/cXUSKQtwG0ErzbRbQ4enTCml+sTk/ygpbs pJq6kHwkHe+MWEftFIKRDq9QR7tSKq/Xm0HlG396DT9j6MIiaxUQwMKy8N4HFD66B6MI K1zKGAV5D0eJw1SIrXDdZelF3LWH1nakvG1a4AoW3xZ3orUsqzZ1aUk27IIfHHykAfm0 z9Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=doY+G8U2hOZO/rtHQ9d8AxGUwC0xhz3TLEL0zv5dC70=; b=j3+Tr2dcuynqJJiAskbZ92x/TDBNtuO4S09GUAVVM3KpDbKCwGR3xTW+lYlhBgMU+U pVD/WKMSo+YxkN3Yz8PpHOyocxxfa7XGCzmDMrTLoAxtq58bQdh3A7IqMrLE99EhCyh/ AW4e06X7x52C1Nw3WVGAgH+Rav0F0uzytkdG0ghdWhd5iN998WZ7Z62vzuS1tYim579Y m/zcItJUI53WwhPqCf+eX6cyCugJcCn2xAcHit5VanUfYSe0Af0Vx7QqaCruTfv6Cx/K CDjK5A4T/B6mHWYlps6xv/gXdlwsLhHjFt1PWlzt4XwHFXgiRJp57hAQ+emgQVsl9Ilr 08Pg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f24si9887273pgi.289.2019.06.01.07.04.03; Sat, 01 Jun 2019 07:04:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726798AbfFAOCg (ORCPT + 99 others); Sat, 1 Jun 2019 10:02:36 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:54587 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726143AbfFAOCa (ORCPT ); Sat, 1 Jun 2019 10:02:30 -0400 Received: from orion.localdomain ([95.114.112.19]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MS3vJ-1h8iCv3O8p-00TSvX; Sat, 01 Jun 2019 16:01:46 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: rjw@rjwysocki.net, viresh.kumar@linaro.org, jdelvare@suse.com, linux@roeck-us.net, khalid@gonehiking.org, jejb@linux.ibm.com, martin.petersen@oracle.com, aacraid@microsemi.com, linux-pm@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-scsi@vger.kernel.org Subject: [PATCH 2/3] drivers: scsi: remove unnecessary #ifdef MODULE Date: Sat, 1 Jun 2019 16:01:39 +0200 Message-Id: <1559397700-15585-3-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1559397700-15585-1-git-send-email-info@metux.net> References: <1559397700-15585-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:g52S7+6K+q7a6APcfLktQhtu6ysHVyU98fi+mu/EcNS2n+TBuZt a8WSpwzjfTZQh17F+xrRcraDx578GIi1tpiQ/rZ6OhbFzrLYTScnlur1ZUSxWWt7MBmIFR2 MECVgJKk8DrwvVZm0XgHMGOempAKuwdBeM/fVJ/EUlHMaf3O+9gpiIjNuKKsv3uberbFF6o 5crXOBT37nAt7QTHbw7Iw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:z05ZqzbJR2I=:xRzDes0nICf8as6QyE5kyp JRZUQd3TBI5k6cgFV4h0/rWxs8I+kKBTjpl3l8H0BiS6XTGo7AOBIyD2U6Po+mANLSoPDf5m0 ErP/6ywGyTIB19Z4bN1RNaOYuqlLzsB0N6QMIZVJ8VT1Dw0vzp6xOyATN7MKXHnvNNc/PtL02 jfnv/ks80t8drbIvWpxKUaiCEUEiK+Up6nLUo2nNbIOPc0Es5/rJBPAennFdmtHr/o4XCTlsF n9yuG+DZ3zAwpAzOLK7bCSIAer9oSGtd37i1IJR2Qohd+sHBZ/rPzadtAufL/U2qCOSZtfaEu BrONKjeSgbRavmljSGskd3VqIMQfAaqNPIfaNzq6Wm9HXSKUu76BBtgeHfGLJDUeNzATSxelX U+I3Qrb5XSZQGNGTWf6VbsV80jByhlpIwMQzaJv2cFc4cRzTEi8x95D8BGQ3yAZwp7F/Pj3El qLAYf2ZaPjBBTLSDbKt4TQU/TXO7E5UGLOaplyhwxwFNMfjPmQUuH9ftO1aoMJ3TiW1aMUnGc x2pgfQb2qRU+TIsQ3n5mlrMiVMgZjd4sFAq90zQ7uXeo4hHnE1wdqc4UFK55EA9pcEvx7Zj+H ryawlrQnliSamCk5wtFS81Q8x/0C01o0V6tADTjV7DorTn2EFs9AYQdUPyLmsjhZmZ15CyoIz Mx18H6Qy8x0prwveBbO/1UroNMcUQmAxBDyzUqphtvSjzIujtaWmXrhfECYq7uLHg7s6Q1Nan oAnwhjy7dsHuHOyE32xYfP/gGOUAhWyw+8Q6qQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The MODULE_DEVICE_TABLE() macro already checks for MODULE defined, so the extra check here is not necessary. Signed-off-by: Enrico Weigelt --- drivers/scsi/BusLogic.c | 2 -- drivers/scsi/dpt_i2o.c | 3 --- 2 files changed, 5 deletions(-) diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c index e41e51f..68cc68b 100644 --- a/drivers/scsi/BusLogic.c +++ b/drivers/scsi/BusLogic.c @@ -3893,7 +3893,6 @@ static void __exit blogic_exit(void) __setup("BusLogic=", blogic_setup); -#ifdef MODULE /*static struct pci_device_id blogic_pci_tbl[] = { { PCI_VENDOR_ID_BUSLOGIC, PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, @@ -3909,7 +3908,6 @@ static void __exit blogic_exit(void) {PCI_DEVICE(PCI_VENDOR_ID_BUSLOGIC, PCI_DEVICE_ID_BUSLOGIC_FLASHPOINT)}, {0, }, }; -#endif MODULE_DEVICE_TABLE(pci, blogic_pci_tbl); module_init(blogic_init); diff --git a/drivers/scsi/dpt_i2o.c b/drivers/scsi/dpt_i2o.c index abc74fd..9b28f9f 100644 --- a/drivers/scsi/dpt_i2o.c +++ b/drivers/scsi/dpt_i2o.c @@ -177,14 +177,11 @@ static u8 adpt_read_blink_led(adpt_hba* host) *============================================================================ */ -#ifdef MODULE static struct pci_device_id dptids[] = { { PCI_DPT_VENDOR_ID, PCI_DPT_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID,}, { PCI_DPT_VENDOR_ID, PCI_DPT_RAPTOR_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID,}, { 0, } }; -#endif - MODULE_DEVICE_TABLE(pci,dptids); static int adpt_detect(struct scsi_host_template* sht) -- 1.9.1