From: Amir Vadai Date: Mon, 28 Feb 2011 09:33:58 +0000 (+0200) Subject: sdp: fix sdp_sendmsg counters in sdpstats X-Git-Tag: v4.1.12-92~264^2~5^2~35 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=fc9977b64c1fbf1317a23692ca9662c78f43a297;p=users%2Fjedix%2Flinux-maple.git sdp: fix sdp_sendmsg counters in sdpstats Signed-off-by: Amir Vadai --- diff --git a/drivers/infiniband/ulp/sdp/sdp_proc.c b/drivers/infiniband/ulp/sdp/sdp_proc.c index b57e2182aec6b..e4a94aedd5922 100644 --- a/drivers/infiniband/ulp/sdp/sdp_proc.c +++ b/drivers/infiniband/ulp/sdp/sdp_proc.c @@ -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]; \ } \ } \ })