From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Santana Subject: [PATCH v2 2/2] Fix variable assignment. Date: Thu, 14 Feb 2019 14:35:47 -0500 Message-ID: <20190214193547.30783-3-msantana@redhat.com> References: <20190213190813.12702-1-msantana@redhat.com> <20190214193547.30783-1-msantana@redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Thomas Monjalon , Van Haaren Harry , ramirose@gmail.com, Bruce Richardson To: dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 1F3331B4A6 for ; Thu, 14 Feb 2019 20:35:51 +0100 (CET) In-Reply-To: <20190214193547.30783-1-msantana@redhat.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fix trivial bug. In sh shell, 'foo = 1' is not the same as 'foo=1'. Using 'foo = 1' makes the shell attempt to interpret foo as a command, rather than a simple variable assignment. Signed-off-by: Michael Santana Fixes: dafc04c15174 ("hash: fix out-of-bound write while freeing key slot") --- v2: Nothing changed since v1. devtools/checkpatches.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index 9c2b0a28a..8852b9412 100755 --- a/devtools/checkpatches.sh +++ b/devtools/checkpatches.sh @@ -68,7 +68,7 @@ check_forbidden_additions() { # -v RET_ON_FAIL=1 \ -v MESSAGE='Using explicit .svg extension instead of .*' \ -f $(dirname $(readlink -e $0))/check-forbidden-tokens.awk \ - "$1" || res = 1 + "$1" || res=1 return $res } -- 2.20.1