Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp553839pxb; Wed, 13 Apr 2022 07:40:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRpQbQxMfs+O9oXa6uqlg94hloN8i013sRYa688eIYS46LfAgUtFCKTJzpbOTZVvD4EmxT X-Received: by 2002:a17:906:2bc5:b0:6cd:e676:3624 with SMTP id n5-20020a1709062bc500b006cde6763624mr39192721ejg.277.1649860856477; Wed, 13 Apr 2022 07:40:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649860856; cv=none; d=google.com; s=arc-20160816; b=pVEwoIG8j+oHhIKQC5w8c63Ol9bC+IjgTlZFjRDNCgbaiATunE2owgWNbBdhCY8DjV Qbf2ZM8Qsj3u76vsAjmXKs0eF+J7++6K0W2ylhNK/LP0WENkWPWnVpV1QJvCw6EOnl8X EbRXtaE0Gm9gWUWg4DTmOzqShjYQDT+5w5vrJH/RAUVYU1Jxjc190c8g6d4QbZmrSM39 aeT4UN+w/RvZkFIpT60H4pnyD9jNDbWUa4zh2VBOQPoz8qTPjUm/a/fZTjXh4Y+Sp5bt U+mtdapSALZ53hmD2rXy+yTwd5zDvQjiqAVw4LplkOI7C3FlAw5N03wxqWZ2qJEAjLQQ I3xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IPpag3+972R44s++fbd4ZAcZ5wlqRJ02VxB1aGKpffw=; b=Rdp1ikFH+rDYDEEnmVdA7Afbx/mC/qOu8ocKYgC9kLYOEdVCDVwmqYFb1w7TPzp3HC kugmB+eKx14ynM9sRKWhPp2HXERwJS1DdUcOOUCFoLMSEGT9REFjO0rvRtMhNrr1rCEY NpT/ceDx/FtucDXfJED3k0St03X/sgExi8dnMHZEV25XcJpP4oXv1MZmBTs2KAIgwxEx gykW8usbBFBLgWCcy+lClGAnF6vvTxYruqGbnhsi0VZ58bn5AZFdtZqZoKHQjeObf+1B MlA6oK4Ju0u5hkGGlFXV1oOFBVntKsiDPBIohX3b8zghJJMbNW8Q6HX1fnBKXOg0f2ch Snxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=nEdXCtMr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a6-20020a056402236600b00418c2b5be00si1817980eda.226.2022.04.13.07.40.30; Wed, 13 Apr 2022 07:40:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=nEdXCtMr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233272AbiDMHT2 (ORCPT + 99 others); Wed, 13 Apr 2022 03:19:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230027AbiDMHTZ (ORCPT ); Wed, 13 Apr 2022 03:19:25 -0400 Received: from m15111.mail.126.com (m15111.mail.126.com [220.181.15.111]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5B5C5BE39; Wed, 13 Apr 2022 00:17:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=IPpag 3+972R44s++fbd4ZAcZ5wlqRJ02VxB1aGKpffw=; b=nEdXCtMrzOZ/zONktw5jg 1I09nJfdWLc33D9fu4tR5TH6vmjjL10DqtJS9HSLlbGPhEu2/zLYK8ZaIdcQwIAp 3lT1Sui3EmoDWNwM4loA5wVd3I+nL3blvsJBCcEIqrNLcdFRcsfXuXZIH8R3GBI1 4362rJv8MdczpkWAwIpCWI= Received: from ubuntu.localdomain (unknown [58.213.83.157]) by smtp1 (Coremail) with SMTP id C8mowACXpycocFZimRLWAQ--.47686S4; Wed, 13 Apr 2022 14:39:38 +0800 (CST) From: Bernard Zhao To: Thierry Reding , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Cc: bernard@vivo.com, Bernard Zhao Subject: [PATCH] gpu/host1x: remove useless if(ptr) check to kfree Date: Tue, 12 Apr 2022 23:39:34 -0700 Message-Id: <20220413063934.23571-1-zhaojunkui2008@126.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: C8mowACXpycocFZimRLWAQ--.47686S4 X-Coremail-Antispam: 1Uf129KBjvdXoW5KrWxZr1UAw1xWFyfXr48Crg_yoWxXwb_ur 1kJr1kW3yrGFnYqa17ArnxZrW0yFZ8uaykZryIga4rtryUCrn8Jw17ur1fu3WrWa1rGFyD A3WxtrW5Jw17KjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sRpwZzPUUUUU== X-Originating-IP: [58.213.83.157] X-CM-SenderInfo: p2kd0y5xqn3xasqqmqqrswhudrp/1tbiYArhqlpEG2eDWwAAsb X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch remove useless if(ptr) check to kfree. Signed-off-by: Bernard Zhao --- drivers/gpu/host1x/fence.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/host1x/fence.c b/drivers/gpu/host1x/fence.c index ecab72882192..05b36bfc8b74 100644 --- a/drivers/gpu/host1x/fence.c +++ b/drivers/gpu/host1x/fence.c @@ -93,8 +93,7 @@ static void host1x_syncpt_fence_release(struct dma_fence *f) { struct host1x_syncpt_fence *sf = to_host1x_fence(f); - if (sf->waiter) - kfree(sf->waiter); + kfree(sf->waiter); dma_fence_free(f); } -- 2.33.1