Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1928333ybz; Thu, 30 Apr 2020 07:55:54 -0700 (PDT) X-Google-Smtp-Source: APiQypKei6dSwYzpXHzmmPLVEepJ2LgqLNAJnF7Hb5cIlLoJeXgNmEshWRWivoXMrriRLdm8YPBy X-Received: by 2002:a17:907:7246:: with SMTP id ds6mr2840597ejc.203.1588258554300; Thu, 30 Apr 2020 07:55:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588258554; cv=none; d=google.com; s=arc-20160816; b=dWXQG2f+jtQjR1yYSV62V7h+UedfI3vJRHI697Z7wbPVfEAJhu+9eAHQWR+3VXu+j7 2sTTrdVSyITyx7nFnSt90GrC+YnirXD8FBGgkXrz1w7KP1cdzTNh0uBlOhNTxCCXIxT9 JP4gCTkh4J+TM9hVzbvbGkiUYVE2y7UmaqbsFHxwhlJ5gsePm3IqL62Qxx9+nFsAAD6Y 4PxgvcrCME5iIpOAWbTL+4G5bgAZiGUZr0X5jm2QzfmrTCSe3OOgYjL9ap0TQBaIjVnk 602dP0w0y34Omh6fbbLayhtSAgLKPgBK9v8hVBHKlf6a//dpMmKMreILO7sYfmqyQDAQ zAsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+QmnvA5dChJIrax5V/yu0dUwTA3YT4Rbv3dYKbrlm30=; b=KFhYePtloAAbpc8nysMngKQTGn4qWKNcQCO6/TjbvRMrEoMrCcwklUkX+8F+KFpEGu KZ53WjB96HLRCJsYti/n0lQ12ynxa3GA1qcvJFgSeuaXIhyS1RqtchiA/k3qTs/l893O ULLOiW9Zu1sCTDu9MlQNsPj18a5uQibGCpyVyEiCWIXcMv9XWQ84sg6RRH5lixiPdKhv YozCpjaI3Iz1Awe+g4w5ESmf50bQnITCyjREuGXJJecXmoLVB1G8/AlADv1JBkxjCEs4 joIKe7zjDcgonrpA3ivSFdaA/+Blal8dmkzCVa+iJHRIcutu2I9fVZqyExQ8xSVRSfcV 6Qvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XMafNpnq; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si5624740edh.267.2020.04.30.07.55.07; Thu, 30 Apr 2020 07:55:54 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XMafNpnq; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726768AbgD3Oxu (ORCPT + 99 others); Thu, 30 Apr 2020 10:53:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726357AbgD3Oxt (ORCPT ); Thu, 30 Apr 2020 10:53:49 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7119FC035494 for ; Thu, 30 Apr 2020 07:53:48 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id i10so7270875wrv.10 for ; Thu, 30 Apr 2020 07:53:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=+QmnvA5dChJIrax5V/yu0dUwTA3YT4Rbv3dYKbrlm30=; b=XMafNpnqZG9Xdd7UCHcbsV9f2c8cG/AAV3triecqXWg4KtluV8iWCXdtsAyYLBrbtS /ymgp1h6s/Ot7N+Pv/6/0QhvJ7iiu4tlLd36OgC0vSAuFTBU6qckF82f6ftOGqJXPKGv 4b8qCnS8WlMEfblgozRdx1BwqUACDuVSzQa/9KdqBjjkJesUjNtkZKXHEpCeutZ5Dux0 bjz+gvYSj3qNbOYLsHZ99BVOxxrhkN5XGf3w1ewGboFLGsqOGzbuprjG8Jks8PK1X/Ki tePOZILA4bveKNlBTjMy6qWWOdhMAn+FQoGY2VUOLcVhMq8G3yuZ6KrHeaoO2r/bQSMF LOWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=+QmnvA5dChJIrax5V/yu0dUwTA3YT4Rbv3dYKbrlm30=; b=KbOvjWXShVR8GROBnPpog5qZJ48DZ11xLihI7j+CI6VoDr5UVMkXKNcgBVlky/PzJ6 rX/RIIE5jmXkhe5U1PrsMgtYp3LU0gLFx+o217izeybr8usedlJVSDcKd8lDxpoWIe0N zznDVqelRGmFLqh+q/t846ntBO9U9/5EnFyHbHIA1oARy+IyLx8Jllv8+bW+UyJiDljS MaiU6Lf+rxvjECraoZ34ffsMQ8x72RJiwV3wctiV8xgZRJptYmiTerK0m4Vr8+TGAC/T 7UBkU4SyBw6DFD3Z/UqaZivlFh57YulKS4us3Wan4OE4PJYfjf6ZE/rs3g/DlzO4EYX2 QGaQ== X-Gm-Message-State: AGi0PuamPyQF2tlPNjzFXNbW68LbiVydmIuw0u/D0jsg21oBi8PUhHRI ymr2xD38b+Y49lCzjp/gEZrusOXN6XUBYBu/+Kw= X-Received: by 2002:adf:f844:: with SMTP id d4mr4292599wrq.362.1588258427244; Thu, 30 Apr 2020 07:53:47 -0700 (PDT) MIME-Version: 1.0 References: <20200426131244.22293-1-bernard@vivo.com> <2c67e29b-df17-6ae3-cb55-af950acc022c@amd.com> In-Reply-To: <2c67e29b-df17-6ae3-cb55-af950acc022c@amd.com> From: Alex Deucher Date: Thu, 30 Apr 2020 10:53:35 -0400 Message-ID: Subject: Re: [PATCH] drm/radeon: cleanup coding style a bit To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: Bernard Zhao , Alex Deucher , "David (ChunMing) Zhou" , David Airlie , Daniel Vetter , amd-gfx list , Maling list - DRI developers , LKML , opensource.kernel@vivo.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! Alex On Sun, Apr 26, 2020 at 9:18 AM Christian K=C3=B6nig wrote: > > Am 26.04.20 um 15:12 schrieb Bernard Zhao: > > Maybe no need to check ws before kmalloc, kmalloc will check > > itself, kmalloc`s logic is if ptr is NULL, kmalloc will just > > return > > > > Signed-off-by: Bernard Zhao > > Reviewed-by: Christian K=C3=B6nig > > I'm wondering why the automated scripts haven't found that one before. > > > --- > > drivers/gpu/drm/radeon/atom.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/drivers/gpu/drm/radeon/atom.c b/drivers/gpu/drm/radeon/ato= m.c > > index 2c27627b6659..f15b20da5315 100644 > > --- a/drivers/gpu/drm/radeon/atom.c > > +++ b/drivers/gpu/drm/radeon/atom.c > > @@ -1211,8 +1211,7 @@ static int atom_execute_table_locked(struct atom_= context *ctx, int index, uint32 > > SDEBUG("<<\n"); > > > > free: > > - if (ws) > > - kfree(ectx.ws); > > + kfree(ectx.ws); > > return ret; > > } > > > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel