Staging: unisys: Remove unused macros from visorchannel/visorchannel.h
authorKen Cox <jkc@redhat.com>
Thu, 22 May 2014 17:31:12 +0000 (12:31 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 11:21:10 +0000 (20:21 +0900)
VISORCHANNEL_CHANGE_SERVER_STATE and VISORCHANNEL_CHANGE_CLIENT_STATE
are never used in any of the source so they have been removed.

VISORCHANNEL_CHANGE_CLIENT_STATE would have caused a broken kernel build
after commit  a8d7f21d, but since it was never used the kernel continued
to build.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ken Cox <jkc@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorchannel/visorchannel.h

index 784f03a2ef6dcda3868ba24c15522cddc69ba99b..ecf0d11117e93059736d29d0ed120df54384d433 100644 (file)
@@ -75,34 +75,4 @@ void visorchannel_dump_section(VISORCHANNEL *chan, char *s,
                               int off, int len, struct seq_file *seq);
 void __iomem *visorchannel_get_header(VISORCHANNEL *channel);
 
-#define        VISORCHANNEL_CHANGE_SERVER_STATE(chan, chanId, newstate)        \
-       do {                                                            \
-               U8 *p = (U8 __iomem *)visorchannel_get_header(chan);    \
-               if (p) {                                                \
-                       ULTRA_CHANNEL_SERVER_TRANSITION(p, chanId, SrvState, \
-                                                       newstate, logCtx); \
-                       visorchannel_write                              \
-                               (chan,                                  \
-                                offsetof(ULTRA_CHANNEL_PROTOCOL, SrvState), \
-                                p +                                    \
-                                offsetof(ULTRA_CHANNEL_PROTOCOL, SrvState), \
-                                sizeof(U32));                          \
-               }                                                       \
-       } while (0)
-
-#define        VISORCHANNEL_CHANGE_CLIENT_STATE(chan, chanId, newstate)        \
-       do {                                                            \
-               U8 *p = (U8 __iomem *)visorchannel_get_header(chan);    \
-               if (p) {                                                \
-                       ULTRA_CHANNEL_CLIENT_TRANSITION(p, chanId,      \
-                                                       newstate, logCtx); \
-                       visorchannel_write                              \
-                               (chan,                                  \
-                                offsetof(ULTRA_CHANNEL_PROTOCOL, CliStateOS), \
-                                p +                                    \
-                                offsetof(ULTRA_CHANNEL_PROTOCOL, CliStateOS), \
-                                sizeof(U32));                          \
-               }                                                       \
-       } while (0)
-
 #endif