staging: lustre: ldlm: Fix initialization of static variables
authorAndreas Ruprecht <rupran@einserver.de>
Sun, 23 Nov 2014 13:37:52 +0000 (14:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 20:50:27 +0000 (12:50 -0800)
checkpatch complains about static variables being initialized to 0
which is unnecessary. This patch removes the initialization.

Signed-off-by: Andreas Ruprecht <rupran@einserver.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c
drivers/staging/lustre/lustre/ldlm/ldlm_request.c

index 4afc15e..b95f73c 100644 (file)
@@ -724,7 +724,7 @@ static int ldlm_callback_handler(struct ptlrpc_request *req)
 static struct ldlm_bl_work_item *ldlm_bl_get_work(struct ldlm_bl_pool *blp)
 {
        struct ldlm_bl_work_item *blwi = NULL;
-       static unsigned int num_bl = 0;
+       static unsigned int num_bl;
 
        spin_lock(&blp->blp_lock);
        /* process a request from the blp_list at least every blp_num_threads */
index 03523b0..a9a04de 100644 (file)
@@ -95,7 +95,7 @@ int ldlm_expired_completion_wait(void *data)
        struct obd_device *obd;
 
        if (lock->l_conn_export == NULL) {
-               static unsigned long next_dump = 0, last_dump = 0;
+               static unsigned long next_dump, last_dump;
 
                LCONSOLE_WARN("lock timed out (enqueued at "CFS_TIME_T", "
                              CFS_DURATION_T"s ago)\n",