credit: remove pointless local variable initialization
authorJoshua Otto <jtotto@uwaterloo.ca>
Thu, 7 Jan 2016 14:28:08 +0000 (15:28 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 7 Jan 2016 14:28:08 +0000 (15:28 +0100)
Coverity CID 1343301

No functional changes.

Signed-off-by: Joshua Otto <jtotto@uwaterloo.ca>
xen/common/sched_credit.c

index 0dce790dc82c61261b3d60f41fdfa141a452743e..02afddfd2bb5df5402351dfeaafba8383fb5797e 100644 (file)
@@ -1792,7 +1792,7 @@ csched_dump_pcpu(const struct scheduler *ops, int cpu)
     struct csched_private *prv = CSCHED_PRIV(ops);
     struct csched_pcpu *spc;
     struct csched_vcpu *svc;
-    spinlock_t *lock = lock;
+    spinlock_t *lock;
     unsigned long flags;
     int loop;
 #define cpustr keyhandler_scratch