Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp890927pxt; Thu, 5 Aug 2021 14:28:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrg3mM0faBys04H1gvyjwlUlvQrebEdhzO7VinArTLXHfrf5ijwxgxGwDgRVTFyVtiXe2Z X-Received: by 2002:a05:6402:299:: with SMTP id l25mr9164796edv.283.1628198900198; Thu, 05 Aug 2021 14:28:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628198900; cv=none; d=google.com; s=arc-20160816; b=ZnHUZOZL47Id/px6se5mO+L+1e95S8QFhZSZ2TcwgYMZYYBZzJPVNfZ5OOU3Pg2usc +ELV+7n9P/rTj39KHAY2lnTKXUQvS79dHX+JV5YOxgozMWV2b5gKxMjZyF93e1Ib4XUv WEKzi4BNlMzThqqBIQ7O0ChOjxN1P3uxGD/HCJkeD5N946xOkPaEZhccV//OTVm7GAjn rFbugAO4ype6UvaA8Lr7KYhdcimY4zL7XA4N2lCY4nQZEhChv+uBcGQZYqNz8/BOf1fV U/4d8pqV2+RMUA6odFSTo5/b4MK/TsjG5aRc82r3YU42YMQJFxMhIB2GcqqJHPvSZRah mVdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=l686f0aR6AZETBlltd1qDZRfWjVmSO5B176n1yPkOvQ=; b=aNovq/JU6wFMP6z9wjSMYOGVVpcHu+MFeA3q+t8edz8k/iKmI5NJAOs6LjcmRcZwfB 3MLa5rWC/eUB2f1Au4pwzwRt8oyxcON6iDWJjkA37HVHebwnJRE2aPPfRHRLY8wE1ROO rc6lfcINkVldigSdc4ySBS2McNzv6it2lQ3+5iUtgnE321EgnEMYAK0N7lYs2f9QJbxT x8BFpcVkQotfd6LnNWDKtlYHGuY9vj1PO6JU0MQ8Av1ZCBEhnU/SGxMbH13t4Lm3eMdg QHDBnBvz/eQcyA1xznONUjhqSeVDwUDUUCiicWIiuiuEgG2+AO2nSOfKSrrWyt5c0+Cc RRDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HAKSzogB; 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 s18si7757084ejh.110.2021.08.05.14.27.56; Thu, 05 Aug 2021 14:28:20 -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=HAKSzogB; 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 S232651AbhHETlR (ORCPT + 99 others); Thu, 5 Aug 2021 15:41:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229594AbhHETlR (ORCPT ); Thu, 5 Aug 2021 15:41:17 -0400 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94B81C061765 for ; Thu, 5 Aug 2021 12:41:01 -0700 (PDT) Received: by mail-ot1-x32a.google.com with SMTP id a5-20020a05683012c5b029036edcf8f9a6so6335830otq.3 for ; Thu, 05 Aug 2021 12:41:01 -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=l686f0aR6AZETBlltd1qDZRfWjVmSO5B176n1yPkOvQ=; b=HAKSzogBjHaGz/MmRtknrIukzojUmgTt4Rr5s5HqZchtgPstM/lth+D8ZYpKQZpzqb 4DRFfpTDTAngj62j2qfwJ8vRvzz7Lh7R9BV/thjDZCbx5OG8xv5Yel1EuESASdqBu+6+ X/F5pTULZeUXAYAMvZckWnAHIDA+sC2HLyroo0uDuABk0KgJmNfweerBS+i2IaoYC3cz 433cM+fONuHf+lkEEH4UQnHLorG5rK2v2EBl1SN2EIfx7pO3L+uQgN+7/sPe6t4z5pQx YX7qWjK6E0TTHwz6Ou6CtZCZj2cVm0zQ27l+fQFaW0c3WbLuXb+kzbynx89cuybJanK+ SX2g== 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=l686f0aR6AZETBlltd1qDZRfWjVmSO5B176n1yPkOvQ=; b=TUypCeOhWZl+o6F/gBwPYsM3IeCJdDIlz1xtfABMRj8sHsJtZ/N1OKusmv367E8uMl di88YAjRxsgbRL3bIAqbzWV6flrXzMXKgYVNTxs1fEVfE+yyxUSz/mZu4IvMYngwdguG KPi6tFI3tSfKn41jvXwHRtyG4HoRU8aWpX+DQPGW44KYN/WEz93u08HHFeZXxyVWo60m fQTP7PqvGo5hKqg6hXxFHPBnHLUlTQW9bF1K1tyirdDZy7nfTNUsighXYtaReYeDxobu HjZ9IlBenNB3vRpmpaGrqxufmIEHhgZ/Ww9JHUY0xtu+9l5MXg8dmjmARvs1fO/yTnaH iXvw== X-Gm-Message-State: AOAM530j7FMs+yDO0tZEJG2PoAXD0ITRgVse1jUK9sAgBKB4PXhfbZJF 35yeV6UmG0EW7KKr7dk+V8X2OSOA+J07GydSet4= X-Received: by 2002:a9d:70c3:: with SMTP id w3mr4873883otj.311.1628192461066; Thu, 05 Aug 2021 12:41:01 -0700 (PDT) MIME-Version: 1.0 References: <20210804112053.263887-1-sergio@lony.xyz> <296a3a38-2e9c-f3f2-66a8-70f52eaff2eb@gmail.com> In-Reply-To: <296a3a38-2e9c-f3f2-66a8-70f52eaff2eb@gmail.com> From: Alex Deucher Date: Thu, 5 Aug 2021 15:40:50 -0400 Message-ID: Subject: Re: [PATCH] DRM: gpu: radeon: Fixed coding style issues To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: =?UTF-8?Q?Sergio_Migu=C3=A9ns_Iglesias?= , Dave Airlie , Daniel Vetter , "Deucher, Alexander" , Christian Koenig , xinhui pan , amd-gfx list , LKML , =?UTF-8?Q?Sergio_Migu=C3=A9ns_Iglesias?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! Alex On Thu, Aug 5, 2021 at 8:33 AM Christian K=C3=B6nig wrote: > > Am 04.08.21 um 13:20 schrieb Sergio Migu=C3=A9ns Iglesias: > > Fixed braces, an unnecessary if statement and added a missing space. > > > > Signed-off-by: Sergio Migu=C3=A9ns Iglesias > > Normally we see patches which just fixes coding style as unnecessary > churn, but the "if (rbo) {}" is really ugly here. > > So Reviewed-by: Christian K=C3=B6nig . > > Thanks, > Christian. > > > --- > > drivers/gpu/drm/radeon/radeon_fb.c | 7 ++----- > > 1 file changed, 2 insertions(+), 5 deletions(-) > > > > diff --git a/drivers/gpu/drm/radeon/radeon_fb.c b/drivers/gpu/drm/radeo= n/radeon_fb.c > > index 0b206b052972..6640b7c947fe 100644 > > --- a/drivers/gpu/drm/radeon/radeon_fb.c > > +++ b/drivers/gpu/drm/radeon/radeon_fb.c > > @@ -54,6 +54,7 @@ radeonfb_open(struct fb_info *info, int user) > > struct radeon_fbdev *rfbdev =3D info->par; > > struct radeon_device *rdev =3D rfbdev->rdev; > > int ret =3D pm_runtime_get_sync(rdev->ddev->dev); > > + > > if (ret < 0 && ret !=3D -EACCES) { > > pm_runtime_mark_last_busy(rdev->ddev->dev); > > pm_runtime_put_autosuspend(rdev->ddev->dev); > > @@ -196,9 +197,8 @@ static int radeonfb_create_pinned_object(struct rad= eon_fbdev *rfbdev, > > radeon_bo_check_tiling(rbo, 0, 0); > > ret =3D radeon_bo_kmap(rbo, NULL); > > radeon_bo_unreserve(rbo); > > - if (ret) { > > + if (ret) > > goto out_unref; > > - } > > > > *gobj_p =3D gobj; > > return 0; > > @@ -294,9 +294,6 @@ static int radeonfb_create(struct drm_fb_helper *he= lper, > > return 0; > > > > out: > > - if (rbo) { > > - > > - } > > if (fb && ret) { > > drm_gem_object_put(gobj); > > drm_framebuffer_unregister_private(fb); >