Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4481841rwb; Sun, 4 Dec 2022 02:56:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf7aEmdC2rdsKUQVFiOeC0kCBgaAXNWmHfMM8G023XZbw7LizYORzuJvIOIGFJ3yw9CAzEZi X-Received: by 2002:a17:906:4bc4:b0:78d:6325:356 with SMTP id x4-20020a1709064bc400b0078d63250356mr65721531ejv.6.1670151365381; Sun, 04 Dec 2022 02:56:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670151365; cv=none; d=google.com; s=arc-20160816; b=wD6nZn1wcVE+K7EVCmn6YKjOtAlaqJm1qkvE0Hu9Kj21ViKaK+pvJ/yoe9DpBRQvZ3 kgxuQ9dPZhSM6QZO/RtscdEp5/YizhGaF0L63OUs9e5D6YzM293MTX3qIc/M3euqbNtp bXnipH5NoXBJqWMT7xYVV1GW9+hcHsIT9G/lTVr88auFKEXPXfLSNT9qFCF6VVH7LeSa jkVR0t1rFkAAM2iSG5PcTvxz2p3VnDauzuhiiENODeahvs5EVHubDjFy8rt6z50/XPVk HKg6wiyzssHb40zEHjpHf75V3rkhR2/cRh61qfdtiydLBOmouj9cyHNKg7CXLMCQDGYF yXow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=2fSlUnMO/6t25t/a1TF0aEDuwOExF29IGAIYrpdFAPg=; b=u7OqSqr1CWM1gl/9AQxkPsVNN+5gHtBTPBXl6+m4pKYzyZpjWrFOh51TIGwAmOKgp3 koj6PFiIB+smXVLMe7aCIKQ0eIrNrSC/Brde0STD3ZuG/TdjqVZUoYd2UzYZYZwaW95h uZCEs1ZvVKDq5YDpuMTK5hjDskSY6ZaGMC32xvBmLUEmCX36YdrJpq/ZKglECwlF/Buo iiqDNIsvas1QyYA13F9IapRMGdWg2omaqCGv5i7RtblIQbAFy8nctyMHE+bpkwwSvr9Y tG8j7mpMTNitFIJYaMYxKR2m2NW01Yu7iB9PbByPeTLuAvf7w6R9Bim6ZZGOWJ+aD87f FJoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=d7a5DRPg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn8-20020a17090794c800b007c090299c40si4901215ejc.351.2022.12.04.02.55.46; Sun, 04 Dec 2022 02:56:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=d7a5DRPg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230017AbiLDKTZ (ORCPT + 82 others); Sun, 4 Dec 2022 05:19:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbiLDKTW (ORCPT ); Sun, 4 Dec 2022 05:19:22 -0500 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98F4B1704B for ; Sun, 4 Dec 2022 02:19:20 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id w4-20020a17090ac98400b002186f5d7a4cso12281225pjt.0 for ; Sun, 04 Dec 2022 02:19:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=2fSlUnMO/6t25t/a1TF0aEDuwOExF29IGAIYrpdFAPg=; b=d7a5DRPgcOJQ2TIwVAt0hAZwlXkQ4E4X01QQaSCgoy/a0H+kL3NYjZKtDsbJeqr0g6 nEg/HMTc6soeTxkoEdqyUr1SAdtCVLpXYa7YazbtUYc1K44UUj8iM33O7jcJmlxvgJOE c2esxiAOwBL9kkjV0a3hRoVEjqe73aPzmCCdmyb55s4FGKpnkQGmpyvK8X7Sk9DkBTKN msQk7/KoSmrBRIxwSEmpUoaaRHVn+oOua6fssy025dxuLO7Iwg8uJg3zc2cQ/MnQQwMS 6MP4gkyMEnkwLNw/HmLsCUmL8yAw9PGYA8H9DFE3+lk41IDAk3/BWYhZUIk0P/vbw9N4 bm9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2fSlUnMO/6t25t/a1TF0aEDuwOExF29IGAIYrpdFAPg=; b=6qq7qFzIMkUAu7zfVq8FmS6Ga7y2NumqBkPNVM8Gve+1lbCjyKGbJai3iYSrjz4tPj iC1Cpqwtjrh+EOXXo3gwG6JRkNjPSKOVCt4EzDIydsPAN6hD8QB/O2CkaiIv9juNSlng yvg+Iy+OVvRB+VBPtKemhnzMn119NFeKXlJBKNOhg98cvowEUTVRbtEGFxkJoCkiooxE kFIhfRCzUtL/9e1y55P43mXSttQAgyw3R6llYCKmMb85Eu5a3qKRYCrOpRQhvwJ43HTJ b+huwVDWma2QiKEZImtjj2aEsq+I8QikTnFzAdshddntpUXOXZW06g9LqNFXjQ+eINX3 iGJA== X-Gm-Message-State: ANoB5pm6BBse3FoeD0/6BZHNYJdD5drrT3TidW/PIxjFpGw4cnV+ruSg 7NVN45CXNyCVdLab/xflOXiRI2wiBS7ttEO0 X-Received: by 2002:a17:90a:b298:b0:212:f923:2f90 with SMTP id c24-20020a17090ab29800b00212f9232f90mr81856509pjr.93.1670149159930; Sun, 04 Dec 2022 02:19:19 -0800 (PST) Received: from zoo868e (1-170-26-182.dynamic-ip.hinet.net. [1.170.26.182]) by smtp.gmail.com with ESMTPSA id lt19-20020a17090b355300b00218f5de49f4sm9426293pjb.1.2022.12.04.02.19.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Dec 2022 02:19:19 -0800 (PST) Date: Sun, 4 Dec 2022 18:19:16 +0800 From: Matt Jan To: Martyn Welch , Manohar Vanga , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH] staging: vme_user: remove multiple blank lines Message-ID: <20221204101916.GA51992@zoo868e> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove multiple unnecessary blank lines in accordance with the Linux kernel coding-style regulations. The issues were reported by the checkpatch script. Signed-off-by: Matt Jan --- drivers/staging/vme_user/vme.h | 2 -- drivers/staging/vme_user/vme_fake.c | 5 ----- drivers/staging/vme_user/vme_tsi148.c | 6 ------ drivers/staging/vme_user/vme_tsi148.h | 7 ------- 4 files changed, 20 deletions(-) diff --git a/drivers/staging/vme_user/vme.h b/drivers/staging/vme_user/vme.h index b204a9b4be1b..98da8d039d60 100644 --- a/drivers/staging/vme_user/vme.h +++ b/drivers/staging/vme_user/vme.h @@ -27,7 +27,6 @@ enum vme_resource_type { #define VME_A64_MAX 0x10000000000000000ULL #define VME_CRCSR_MAX 0x1000000ULL - /* VME Cycle Types */ #define VME_SCT 0x1 #define VME_BLT 0x2 @@ -185,6 +184,5 @@ int vme_bus_num(struct vme_dev *); int vme_register_driver(struct vme_driver *, unsigned int); void vme_unregister_driver(struct vme_driver *); - #endif /* _VME_H_ */ diff --git a/drivers/staging/vme_user/vme_fake.c b/drivers/staging/vme_user/vme_fake.c index dd646b0c531d..a9d3a7f5c440 100644 --- a/drivers/staging/vme_user/vme_fake.c +++ b/drivers/staging/vme_user/vme_fake.c @@ -356,7 +356,6 @@ static int __fake_master_get(struct vme_master_resource *image, int *enabled, return 0; } - static int fake_master_get(struct vme_master_resource *image, int *enabled, unsigned long long *vme_base, unsigned long long *size, u32 *aspace, u32 *cycle, u32 *dwidth) @@ -373,7 +372,6 @@ static int fake_master_get(struct vme_master_resource *image, int *enabled, return retval; } - static void fake_lm_check(struct fake_driver *bridge, unsigned long long addr, u32 aspace, u32 cycle) { @@ -1060,7 +1058,6 @@ static void fake_crcsr_exit(struct vme_bridge *fake_bridge) kfree(bridge->crcsr_kernel); } - static int __init fake_init(void) { int retval, i; @@ -1238,7 +1235,6 @@ static int __init fake_init(void) } - static void __exit fake_exit(void) { struct list_head *pos = NULL; @@ -1294,7 +1290,6 @@ static void __exit fake_exit(void) root_device_unregister(vme_root); } - MODULE_PARM_DESC(geoid, "Set geographical addressing"); module_param(geoid, int, 0); diff --git a/drivers/staging/vme_user/vme_tsi148.c b/drivers/staging/vme_user/vme_tsi148.c index 0171f46d1848..482049cfc664 100644 --- a/drivers/staging/vme_user/vme_tsi148.c +++ b/drivers/staging/vme_user/vme_tsi148.c @@ -34,7 +34,6 @@ static int tsi148_probe(struct pci_dev *, const struct pci_device_id *); static void tsi148_remove(struct pci_dev *); - /* Module parameter */ static bool err_chk; static int geoid; @@ -673,7 +672,6 @@ static int tsi148_slave_get(struct vme_slave_resource *image, int *enabled, /* Need granularity before we set the size */ *size = (unsigned long long)((vme_bound - *vme_base) + granularity); - if ((ctl & TSI148_LCSR_ITAT_2eSSTM_M) == TSI148_LCSR_ITAT_2eSSTM_160) *cycle |= VME_2eSST160; if ((ctl & TSI148_LCSR_ITAT_2eSSTM_M) == TSI148_LCSR_ITAT_2eSSTM_267) @@ -1142,7 +1140,6 @@ static int __tsi148_master_get(struct vme_master_resource *image, int *enabled, return 0; } - static int tsi148_master_get(struct vme_master_resource *image, int *enabled, unsigned long long *vme_base, unsigned long long *size, u32 *aspace, u32 *cycle, u32 *dwidth) @@ -1244,7 +1241,6 @@ static ssize_t tsi148_master_read(struct vme_master_resource *image, void *buf, return retval; } - static ssize_t tsi148_master_write(struct vme_master_resource *image, void *buf, size_t count, loff_t offset) { @@ -2000,7 +1996,6 @@ static int tsi148_lm_get(struct vme_lm_resource *lm, if ((lm_ctl & TSI148_LCSR_LMAT_AS_M) == TSI148_LCSR_LMAT_AS_A64) *aspace |= VME_A64; - if (lm_ctl & TSI148_LCSR_LMAT_SUPR) *cycle |= VME_SUPER; if (lm_ctl & TSI148_LCSR_LMAT_NPRIV) @@ -2551,7 +2546,6 @@ static void tsi148_remove(struct pci_dev *pdev) bridge = tsi148_bridge->driver_priv; - dev_dbg(&pdev->dev, "Driver is being unloaded.\n"); /* diff --git a/drivers/staging/vme_user/vme_tsi148.h b/drivers/staging/vme_user/vme_tsi148.h index 226fedc6f167..b3cb4a089cc8 100644 --- a/drivers/staging/vme_user/vme_tsi148.h +++ b/drivers/staging/vme_user/vme_tsi148.h @@ -87,7 +87,6 @@ struct tsi148_dma_entry { * Control and Status Registers */ - /* * Command/Status Registers (CRG + $004) */ @@ -342,7 +341,6 @@ static const int TSI148_LCSR_VIACK[8] = { 0, TSI148_LCSR_VIACK1, #define TSI148_LCSR_IT7_ITOFL 0x3F4 #define TSI148_LCSR_IT7_ITAT 0x3F8 - #define TSI148_LCSR_IT0 0x300 #define TSI148_LCSR_IT1 0x320 #define TSI148_LCSR_IT2 0x340 @@ -464,7 +462,6 @@ static const int TSI148_LCSR_IT[8] = { TSI148_LCSR_IT0, TSI148_LCSR_IT1, #define TSI148_LCSR_DMA0 0x500 #define TSI148_LCSR_DMA1 0x580 - static const int TSI148_LCSR_DMA[TSI148_MAX_DMA] = { TSI148_LCSR_DMA0, TSI148_LCSR_DMA1 }; @@ -532,9 +529,6 @@ static const int TSI148_GCSR_MBOX[4] = { TSI148_GCSR_MBOX0, #define TSI148_CSRBSR 0xFF8 #define TSI148_CBAR 0xFFC - - - /* * TSI148 Register Bit Definitions */ @@ -828,7 +822,6 @@ static const int TSI148_GCSR_MBOX[4] = { TSI148_GCSR_MBOX0, #define TSI148_LCSR_VEAT_AM_M (0x3F<<8) /* Address Mode Mask */ #define TSI148_LCSR_VEAT_XAM_M (0xFF<<0) /* Master AMode Mask */ - /* * VMEbus PCI Error Diagnostics PCI/X Attributes Register CRG + $280 */ -- 2.25.1