Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1208123ybf; Thu, 27 Feb 2020 06:50:15 -0800 (PST) X-Google-Smtp-Source: APXvYqxHfpcVF1ofRjkQHIGdXKWcvZGRmcYcag5Hh+Srm0aPkxoSCllqcviJSS28CQLUALhZyjQk X-Received: by 2002:a9d:6a53:: with SMTP id h19mr13729otn.120.1582815015542; Thu, 27 Feb 2020 06:50:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582815015; cv=none; d=google.com; s=arc-20160816; b=TWPZ6UXH1hbtp+tjd1rS4LniUpgducdSxLRvmuLF0k9O+8SUrcTqqETZCTE6d8yGU7 8kRE8AHFbkrduLDQ+4sOT3vi5TE2BqdBSUP8uSWeuzmdhvKj3VsLjio8RHVS4eT7CPGU aX77Jl/hiAxodSlwhV6QoA+54DS+Z5MN48ce4ad5MbJ2MMvewqFAy1WNJR4BSO1C+Gtw xtjGGTvGhuO+zgOGVcm6AWG1t0v5Am8yOiAB2wXuqBkgBFN0cPxzld6DJRpcJNr3ibc0 sYwoHNx+YER0dtW4Ct1m40hZ3HorcNo8AV5JVf2Gs5AZDiUHo7da/WeCDZr2ZFa5K6Jq rPcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4hkBrg5IKQ9DxXV6SU86lCDlD5oEMauBaeavPuZe/fA=; b=a8ivn2SvDI7plXxhaLvR3AhE5TPMJMGQ93N9zesNlUBdaPnLGhsR2xAer7C2HkYttx s2MCOkScXHeUthUUGsS/pWQsGG3ClQIHUZoVGjCYrLGa6K/89LEANOn3PNOlU8iMQYey nI3XQDUUC9lBK3Zh+q0RjXvjxx5T0WMhe8fH8po9GUkSQBIe4IsWkfoMcUWcDnmrWEMO ZyOqILoAiE9UB/Byilyz8CD3TB/CjwYdSLt73oUuz+vM2Vz94yhuRkfRpoOUMSAXNzrE Ur4ZUVbZnf3c7i7QIuL4U3h8QZ12E6W3U90HVUEycbGt2ExCecAyS+fopmBJL1PI13CY xhqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2DqCPUrJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8si1534543otp.258.2020.02.27.06.50.03; Thu, 27 Feb 2020 06:50:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2DqCPUrJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732271AbgB0OsY (ORCPT + 99 others); Thu, 27 Feb 2020 09:48:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:38480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729939AbgB0NnT (ORCPT ); Thu, 27 Feb 2020 08:43:19 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DC72F21D7E; Thu, 27 Feb 2020 13:43:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582810998; bh=UcX1KRWMAwqV7+3ramiGds4rqxADxTFIV7lKuDR3NbY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2DqCPUrJDKf0P86LkhF595mjAMEotpncLrMdAExlW+D13uGYiATnGfTUGNnpcF0pY DSwST1opW7M8x0ue3RTVbEnIVf61YfDj1M23EVA6VqeC81wzwgSOr9eo3zQGUTxBTn 7uHVoecGz4/K8XfUEj/2umqMCIJrofmav8FOeGpU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH 4.4 077/113] lib/scatterlist.c: adjust indentation in __sg_alloc_table Date: Thu, 27 Feb 2020 14:36:33 +0100 Message-Id: <20200227132224.101407733@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200227132211.791484803@linuxfoundation.org> References: <20200227132211.791484803@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor [ Upstream commit 4e456fee215677584cafa7f67298a76917e89c64 ] Clang warns: ../lib/scatterlist.c:314:5: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] return -ENOMEM; ^ ../lib/scatterlist.c:311:4: note: previous statement is here if (prv) ^ 1 warning generated. This warning occurs because there is a space before the tab on this line. Remove it so that the indentation is consistent with the Linux kernel coding style and clang no longer warns. Link: http://lkml.kernel.org/r/20191218033606.11942-1-natechancellor@gmail.com Link: https://github.com/ClangBuiltLinux/linux/issues/830 Fixes: edce6820a9fd ("scatterlist: prevent invalid free when alloc fails") Signed-off-by: Nathan Chancellor Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- lib/scatterlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scatterlist.c b/lib/scatterlist.c index 0b86b7992f931..1875c09eede91 100644 --- a/lib/scatterlist.c +++ b/lib/scatterlist.c @@ -317,7 +317,7 @@ int __sg_alloc_table(struct sg_table *table, unsigned int nents, if (prv) table->nents = ++table->orig_nents; - return -ENOMEM; + return -ENOMEM; } sg_init_table(sg, alloc_size); -- 2.20.1