Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752272AbcDRGeD (ORCPT ); Mon, 18 Apr 2016 02:34:03 -0400 Received: from smtp2.provo.novell.com ([137.65.250.81]:43517 "EHLO smtp2.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752229AbcDRGeA (ORCPT ); Mon, 18 Apr 2016 02:34:00 -0400 From: Davidlohr Bueso To: mingo@kernel.org, peterz@infradead.org Cc: waiman.long@hpe.com, dave@stgolabs.net, linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: [PATCH -tip 2/3] locking/pvqspinlock: Avoid double resetting of stats Date: Sun, 17 Apr 2016 23:31:42 -0700 Message-Id: <1460961103-24953-2-git-send-email-dave@stgolabs.net> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1460961103-24953-1-git-send-email-dave@stgolabs.net> References: <1460961103-24953-1-git-send-email-dave@stgolabs.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 660 Lines: 23 ... remove the redundant second iteration, this is most likely a copy/past buglet. Signed-off-by: Davidlohr Bueso --- kernel/locking/qspinlock_stat.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/locking/qspinlock_stat.h b/kernel/locking/qspinlock_stat.h index d734b7502001..72722334237a 100644 --- a/kernel/locking/qspinlock_stat.h +++ b/kernel/locking/qspinlock_stat.h @@ -191,8 +191,6 @@ static ssize_t qstat_write(struct file *file, const char __user *user_buf, for (i = 0 ; i < qstat_num; i++) WRITE_ONCE(ptr[i], 0); - for (i = 0 ; i < qstat_num; i++) - WRITE_ONCE(ptr[i], 0); } return count; } -- 2.8.1