From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E6DEC433E6 for ; Mon, 8 Feb 2021 12:12:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1D91D64E29 for ; Mon, 8 Feb 2021 12:12:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230125AbhBHML4 (ORCPT ); Mon, 8 Feb 2021 07:11:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:43384 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230146AbhBHMKs (ORCPT ); Mon, 8 Feb 2021 07:10:48 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7BAAE64E60; Mon, 8 Feb 2021 12:10:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612786207; bh=nmgMPA9aG9SEGs9aCSG8Q2Nt83p49YoOTOJMXeC5rwE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iXaoCKpbW6taMiwTuh+OTTaQPezm9nGCpJf1k+E1zNdz5aOCnbC5piA9IxPDl2aoE ae9L6qeiXNfPEaQwnzQkjEqBmIsYkMSWSGe4HbyIeulaiGnSQ6JUyeLwB9pJmOvl9o Xac9ULfyYOk9IduuKHgDX7cM0Ng5cpipe3O4jxjAXLb2O9rRN8dN4LqhZnnbSPl/7v y23aOPp9Re3Xfvv0QUXrid5D/EwL9IuQqokepoiLmrQ17YN6OcqpMiuid6p9K7lvKS oXPg6fSIC628udwVgApXTUcVipF4P0t3zqRwbdf3anAj+vjWLhfwhC+Ytj7lacUIwf /FxqSeinS6u3A== Date: Mon, 8 Feb 2021 17:40:03 +0530 From: Vinod Koul To: Colin King Cc: Eugeniy Paltsev , Sia Jee Heng , Andy Shevchenko , dmaengine@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] dmaengine: dw-axi-dmac: remove redundant null check on desc Message-ID: <20210208121003.GE879029@vkoul-mobl.Dlink> References: <20210203134652.22618-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210203134652.22618-1-colin.king@canonical.com> Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org On 03-02-21, 13:46, Colin King wrote: > From: Colin Ian King > > The pointer desc is being null checked twice, the second null check > is redundant because desc has not been re-assigned between the > checks. Remove the redundant second null check on desc. Applied, thanks -- ~Vinod