From patchwork Wed Jan 20 06:39:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Long X-Patchwork-Id: 60007 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp2999951lbb; Tue, 19 Jan 2016 22:40:34 -0800 (PST) X-Received: by 10.67.7.200 with SMTP id de8mr50594862pad.28.1453272033902; Tue, 19 Jan 2016 22:40:33 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1si13291950par.7.2016.01.19.22.40.33; Tue, 19 Jan 2016 22:40:33 -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 S1758173AbcATGkb (ORCPT + 29 others); Wed, 20 Jan 2016 01:40:31 -0500 Received: from mail-pa0-f42.google.com ([209.85.220.42]:35558 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751199AbcATGkT (ORCPT ); Wed, 20 Jan 2016 01:40:19 -0500 Received: by mail-pa0-f42.google.com with SMTP id ho8so204173550pac.2 for ; Tue, 19 Jan 2016 22:40:19 -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=LhhCV3KK0gMcO2RURjdBijNmVGhLVujDOXYGS8yE2F/PVIkwZQCTTgD1IUbOZEFi8V m6vhUnHAGQ7cYQ3udaqP6hb0hYTc6FVHjeXS+pO+p4ddwNLefUOrRxF3GyEpK3NNm+yc NjBKd6dklan/8H/Sru939/uxIG3HgcehgcP8k= 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=HVkyD95oeQxIK/KnWl6ijJFiQvIozP/EOltPw4AsphzYEoAf33XfoCeJfBPpQgv+OC nQ09QS52Er3REakQ3PCnPXx06wPknOwGponoif5rNd4kZ+q/zAhdjX/w0FN7nVHSlSl9 MmTXJb8WLHwFF5BlcGxMcjvWNV585TW9n6U8l2ORnKxwQuum9bYoiy5XL6zWAhhnLgBG OSEvdp4tD+SqK8S6KSFeBRI16D9P9fQMRLii4MepD0lpiygT+FzrGnXq3jjLlLr/J4Hd V5eIWwzjguJEZZWCmB74VBYFTJHzRvBklP8uMukeLhWn5/a8xINe21p+8p/UDRWANzKK 0C3w== X-Gm-Message-State: ALoCoQmVjJFNwnJeufqELWp4MDvERv23hV96DN6hwUsVLEZWDO7gK4B0iTFHNq+Ub/DFKxd18feO6nvy/zMseD7HQ1vTEInX1Q== X-Received: by 10.67.22.97 with SMTP id hr1mr50441893pad.49.1453272019010; Tue, 19 Jan 2016 22:40:19 -0800 (PST) Received: from ericlongubtpc.spreadtrum.com ([175.111.195.49]) by smtp.gmail.com with ESMTPSA id cl3sm46279890pad.11.2016.01.19.22.40.17 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jan 2016 22:40:18 -0800 (PST) From: Eric Long To: mathieu.poirier@linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: baolin.wang@linaro.org, zhang.chunyan@linaro.org, eric.long@linaro.org Subject: [RESEND PATCH 2/2] coresight: Remove the mistakes detected by smatch tool Date: Wed, 20 Jan 2016 14:39:13 +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)