From patchwork Wed Jan 13 05:36:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Long X-Patchwork-Id: 59646 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp3155841lbb; Tue, 12 Jan 2016 21:37:56 -0800 (PST) X-Received: by 10.66.218.103 with SMTP id pf7mr14433334pac.140.1452663476406; Tue, 12 Jan 2016 21:37:56 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bx1si31889911pab.57.2016.01.12.21.37.56; Tue, 12 Jan 2016 21:37:56 -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; 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; dkim=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754530AbcAMFhq (ORCPT + 29 others); Wed, 13 Jan 2016 00:37:46 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:33420 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754368AbcAMFho (ORCPT ); Wed, 13 Jan 2016 00:37:44 -0500 Received: by mail-pa0-f44.google.com with SMTP id cy9so352281956pac.0 for ; Tue, 12 Jan 2016 21:37:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=oscM/eBipuzNqX78Rpj5NzWmosJ3h/eQbu1Zx9WSKvg=; b=AL5zd+WZVyD4VFBQ1tdB0o+P5Nt1XhmqGY+JiCqPejISvGGekAFLTUF5ar1Lh6AeUy CHmwDdpK3j3JTDWsQATMZ4t308SKsqyVb3wA0JFbIhBb981bblO+PwXyWIhnljW2ora6 gepJWNn9EY+ga1n2PEfxYZF+2mR8AjQ6mMEuw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=oscM/eBipuzNqX78Rpj5NzWmosJ3h/eQbu1Zx9WSKvg=; b=i6a3LVh3pbgGuSSsO8MHeo4fI191R1wrAb2UbQn4VISAoC2/hMpfsck8m6ohnk5EQ3 VzlLbdvDJvvzSyJQTOZtqv+gskXZdqiDyrGl0O2SyMNTLWdJqlVVvAIMReL3pmtsR5TV O5hdrXut1Xf2JO0vJl3TYzeQBzcmE+jMi8OH+woPOGBHYZQDlk+sQeItic9jeB/9OAaQ xnz+qjdTYZWIoVTjlMW6ZJiQUWANwHy28XLPkSKy5Hj2Nkg9KbA1JWp8CwUm5PT/5nz6 dZPLabmVZSkHgXEv2HOauhXPReWkosvzRB+kKgT5OHg4Pyhxolvl93iNBdMO/nK0lu1E RfOA== X-Gm-Message-State: ALoCoQkUZIGtc0wVe+aIUAmZRr/rMoxI3SjXJ5/4bD9GAoiFhZS42jV6Zry6N3ynid3A0k9jfwvLGAj6HVXTKCMJZmTq5mgH3g== X-Received: by 10.66.237.35 with SMTP id uz3mr194333215pac.96.1452663463596; Tue, 12 Jan 2016 21:37:43 -0800 (PST) Received: from ericlongubtpc.spreadtrum.com ([175.111.195.49]) by smtp.gmail.com with ESMTPSA id q89sm34139858pfa.70.2016.01.12.21.37.41 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Jan 2016 21:37:43 -0800 (PST) From: Eric Long To: mathieu.poirier@linaro.org, linux-kernel@vger.kernel.org Cc: baolin.wang@linaro.org, zhang.chunyan@linaro.org, eric.long@linaro.org Subject: [PATCH 2/2] coresight: Remove the mistakes detected by smatch tool Date: Wed, 13 Jan 2016 13:36:58 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is an unnecessary space at the front of the code. The smatch tool output logs as the following: of_coresight.c:89 of_coresight_alloc_memory() warn: inconsistent indenting Signed-off-by: Eric Long --- drivers/hwtracing/coresight/of_coresight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.7.9.5 diff --git a/drivers/hwtracing/coresight/of_coresight.c b/drivers/hwtracing/coresight/of_coresight.c index b097361..3cc57c1 100644 --- a/drivers/hwtracing/coresight/of_coresight.c +++ b/drivers/hwtracing/coresight/of_coresight.c @@ -86,7 +86,7 @@ static int of_coresight_alloc_memory(struct device *dev, return -ENOMEM; /* Children connected to this component via @outports */ - pdata->child_names = devm_kzalloc(dev, pdata->nr_outport * + pdata->child_names = devm_kzalloc(dev, pdata->nr_outport * sizeof(*pdata->child_names), GFP_KERNEL); if (!pdata->child_names)