]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: vme_user: remove unimplemented #if 0 code blocks
authorAlbab Hasan <albabhasan276@gmail.com>
Sat, 28 Feb 2026 15:38:09 +0000 (21:38 +0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Mar 2026 16:28:47 +0000 (17:28 +0100)
Remove dead code in #if 0 blocks from struct vme_master
and struct vme_slave. these were never implemented or
compiled in.

checkpatch.pl reports:

WARNING: Consider removing the code enclosed by this #if 0 and its #endif

No functional changes.

Signed-off-by: Albab Hasan <albabhasan276@gmail.com>
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260228153809.15398-1-albabhasan276@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme_user/vme_user.h

index 19ecb05781cce291670237e311d8aced8af2c4af..9e010974351dcef0e4d393c8bbb69e9d3e91c26e 100644 (file)
@@ -14,11 +14,6 @@ struct vme_master {
        __u32 aspace;           /* Address Space */
        __u32 cycle;            /* Cycle properties */
        __u32 dwidth;           /* Maximum Data Width */
-#if 0
-       char prefetchenable;            /* Prefetch Read Enable State */
-       int prefetchsize;               /* Prefetch Read Size (Cache Lines) */
-       char wrpostenable;              /* Write Post State */
-#endif
 } __packed;
 
 /*
@@ -35,11 +30,6 @@ struct vme_slave {
        __u64 size;             /* Window Size */
        __u32 aspace;           /* Address Space */
        __u32 cycle;            /* Cycle properties */
-#if 0
-       char wrpostenable;              /* Write Post State */
-       char rmwlock;                   /* Lock PCI during RMW Cycles */
-       char data64bitcapable;          /* non-VMEbus capable of 64-bit Data */
-#endif
 } __packed;
 
 struct vme_irq_id {