Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp272765pxx; Thu, 29 Oct 2020 02:09:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwh2fsMRIl5+UpzpSrK2N7De95u2jo4Jzr/0x45qjwdDzsWMdaBtIdNnffFGN9Uut9Q2o0v X-Received: by 2002:a50:d616:: with SMTP id x22mr873875edi.221.1603962598983; Thu, 29 Oct 2020 02:09:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603962598; cv=none; d=google.com; s=arc-20160816; b=wtP8c96sJ5DKt3iEWvwh/tpMi8iMhjswSnxAh+Sj8QWnxaC9yUZjsDG3jDKh9v06lY 7obfDjKA03qcjXuftIEulTVrQHRxiRROI2ZHLQS5jXUC6gosUWwLjFpTrI9xyivj11kn nmPoRLKmB5x/zTtq4iMFD7zZjuVblpR9yzXcItIXW/j/sZnDdDOGgGCyr+CG+PeEHh59 0kW8JiqKL58tggfv1ktnmBXL5TOksklRRMoBUFeDAbKPhCIfOXMjzG6xkwUJYr3EVBT5 ny56b7uwihbohOmknsRBpdhGY3GdijKV/3ew9ysP0L4+xVP+N0D7d+hOQbW5geFwIlSN UCdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=xEaQugFX9sYIV8TA5smz+HTRxC37jq7+Uq+NWI1NFyg=; b=0kyWv3GdXnbts6+kcK0UYLtoIfOlmd2FHtkK4oa/nCRl1cLgk/dsgKbTgx86wLNV32 9yewJNL4qoEnq/KxwHo90w/KvaPSZ0rfvXWiv4jWZwrNTZwcOxYm9ecpLpk0d+bKcro3 2w6QDMCooLjXRleseCZCSJ3m3O9c0gxr0i4pyGLjakRKoHLONtMdjcWq5oBA/z30prZS t8jXTTblJzHOtGRYpN934YrWgsEfwEn8rg6Y9LFO/zdtE6wLoBDn27l+W5sqgO/S5mR5 b6QObQs10pdSx2HvQLZr9MJZSgxoJHwOR7Nhikn8fEwQOHVFZsRdaU3KbCG0f0o1U6N6 9AmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u23si1596640edo.41.2020.10.29.02.09.36; Thu, 29 Oct 2020 02:09:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729222AbgJ2Ih3 (ORCPT + 99 others); Thu, 29 Oct 2020 04:37:29 -0400 Received: from smtp25.cstnet.cn ([159.226.251.25]:52036 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729200AbgJ2Ih3 (ORCPT ); Thu, 29 Oct 2020 04:37:29 -0400 Received: from localhost.localdomain (unknown [124.16.141.242]) by APP-05 (Coremail) with SMTP id zQCowAAH31I_f5pfk+9KAA--.3487S2; Thu, 29 Oct 2020 16:37:19 +0800 (CST) From: Xu Wang To: krzk@kernel.org, sbkim73@samsung.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: samsung: i2s: Remove redundant null check before clk_disable_unprepare Date: Thu, 29 Oct 2020 08:37:15 +0000 Message-Id: <20201029083715.28561-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: zQCowAAH31I_f5pfk+9KAA--.3487S2 X-Coremail-Antispam: 1UD129KBjvdXoWrZFy8CFy8Aw45GryUtFy5urg_yoW3ZwbEq3 W5Wa1Y9F1UWrZ2y34DCw45Cr4qgF97uFW8Ww1rKr1xKF9rXw43ZrZ7tr13Aa9rJrWkCas5 ZrnFvrWfCrsakjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb2xYjsxI4VW3JwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I 8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI 64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r106r15McIj6I8E87Iv67AKxVW8JVWxJw Am72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lc2xSY4AK67AK6r43MxAIw28I cxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2 IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUXVWUAwCIc40Y0x0EwIxGrwCI 42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42 IY6xAIw20EY4v20xvaj40_Wr1j6rW3Jr1lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2 z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxUxtCzDUUUU X-Originating-IP: [124.16.141.242] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiCwYEA1z4jiRs6wAAsD Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Because clk_disable_unprepare() already checked NULL clock parameter, so the additional check is unnecessary, just remove it. Signed-off-by: Xu Wang --- sound/soc/samsung/i2s.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index df53d4ea808f..36969f0a3f9a 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c @@ -1212,8 +1212,7 @@ static int i2s_runtime_suspend(struct device *dev) priv->suspend_i2scon = readl(priv->addr + I2SCON); priv->suspend_i2spsr = readl(priv->addr + I2SPSR); - if (priv->op_clk) - clk_disable_unprepare(priv->op_clk); + clk_disable_unprepare(priv->op_clk); clk_disable_unprepare(priv->clk); return 0; -- 2.17.1