From patchwork Fri Feb 24 06:48:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 9589471 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C5EBD6042B for ; Fri, 24 Feb 2017 06:48:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE357287AB for ; Fri, 24 Feb 2017 06:48:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2584287AF; Fri, 24 Feb 2017 06:48:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A803287AB for ; Fri, 24 Feb 2017 06:48:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751005AbdBXGsb (ORCPT ); Fri, 24 Feb 2017 01:48:31 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:9224 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750973AbdBXGsb (ORCPT ); Fri, 24 Feb 2017 01:48:31 -0500 X-IronPort-AV: E=Sophos;i="5.35,200,1484002800"; d="scan'208";a="261885124" Received: from 198.67.28.109.rev.sfr.net (HELO hadrien) ([109.28.67.198]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Feb 2017 07:48:19 +0100 Date: Fri, 24 Feb 2017 07:48:19 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Shubhrajyoti Datta cc: Michal Simek , Michael Turquette , Stephen Boyd , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, kbuild-all@01.org Subject: [PATCH] clk: zynqmp: fix itnull.cocci warnings Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Iterator variable bound on line 220 cannot be NULL Generated by: scripts/coccinelle/iterators/itnull.cocci CC: Shubhrajyoti Datta Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- tree: https://github.com/Xilinx/linux-xlnx master head: 1741e191412444e3ab3308b407a9328186c248e4 commit: 75b49bd76a45208749235a7ba35dba96e3e706f0 [358/384] clk: zynqmp: Add check for no of users for vpll Actually, the patch needs to be extended to drop the braces as well. clk.c | 2 -- 1 file changed, 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-clk" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -218,8 +218,6 @@ static void clk_show_subtree(struct clk_ sibling++; hlist_for_each_entry(child, &c->children, child_node) { - if (!child) - return; clk_show_subtree(child, level + 1); } }