]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sdp: fix sdp_sendmsg counters in sdpstats
authorAmir Vadai <amirv@mellanox.co.il>
Mon, 28 Feb 2011 09:33:58 +0000 (11:33 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:05:43 +0000 (05:05 -0700)
Signed-off-by: Amir Vadai <amirv@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp_proc.c

index b57e2182aec6bfda56088d810a2060d9f9b7aa3b..e4a94aedd5922aa21650f801f822fdd8d82e3692 100644 (file)
@@ -326,9 +326,9 @@ static void sdpstats_seq_hist(struct seq_file *seq, char *str, u32 *h, int n,
        unsigned int __i;                                       \
        for_each_possible_cpu(__i) {                            \
                unsigned int __j;                               \
-               u32 *h = per_cpu(sdpstats, __i).hist;           \
+               u32 *hh = per_cpu(sdpstats, __i).hist;          \
                for (__j = 0; __j < hist_len; __j++) {          \
-                       sum[__j] += h[__j];                     \
+                       sum[__j] += hh[__j];                    \
                } \
        }                                                       \
 })