staging: lustre: remove unused flag from ptlrpc_thread
authorNeilBrown <neilb@suse.com>
Thu, 1 Mar 2018 23:31:25 +0000 (10:31 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Mar 2018 12:20:22 +0000 (04:20 -0800)
SVC_EVENT is no longer used.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lustre_net.h

index 5a4434e..108683c 100644 (file)
@@ -1259,7 +1259,6 @@ enum {
        SVC_STOPPING    = 1 << 1,
        SVC_STARTING    = 1 << 2,
        SVC_RUNNING     = 1 << 3,
-       SVC_EVENT       = 1 << 4,
 };
 
 #define PTLRPC_THR_NAME_LEN            32
@@ -1302,11 +1301,6 @@ struct ptlrpc_thread {
        char                            t_name[PTLRPC_THR_NAME_LEN];
 };
 
-static inline int thread_is_init(struct ptlrpc_thread *thread)
-{
-       return thread->t_flags == 0;
-}
-
 static inline int thread_is_stopped(struct ptlrpc_thread *thread)
 {
        return !!(thread->t_flags & SVC_STOPPED);
@@ -1327,11 +1321,6 @@ static inline int thread_is_running(struct ptlrpc_thread *thread)
        return !!(thread->t_flags & SVC_RUNNING);
 }
 
-static inline int thread_is_event(struct ptlrpc_thread *thread)
-{
-       return !!(thread->t_flags & SVC_EVENT);
-}
-
 static inline void thread_clear_flags(struct ptlrpc_thread *thread, __u32 flags)
 {
        thread->t_flags &= ~flags;