From: "Christian König" <christian.koenig@amd.com>
To: Dan Carpenter <dan.carpenter@oracle.com>,
David Airlie <airlied@linux.ie>,
Alex Deucher <alexander.deucher@amd.com>
Cc: "Marek Olšák" <marek.olsak@amd.com>,
kernel-janitors@vger.kernel.org, dri-devel@lists.freedesktop.org,
yanyang1 <young.yang@amd.com>, "Ken Wang" <Qingqing.Wang@amd.com>
Subject: Re: [patch] drm/amdgpu: remove an unnecessary condition
Date: Thu, 11 Jun 2015 09:26:04 +0000 [thread overview]
Message-ID: <5579542C.1060003@amd.com> (raw)
In-Reply-To: <20150611081924.GA27090@mwanda>
On 11.06.2015 10:19, Dan Carpenter wrote:
> We already checked "if (r)" so there is no need to check again.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Hi Dan,
thanks for taking a look into this. This patch and the other two you
send today are Reviewed-by: Christian König <christian.koenig@amd.com>
That code was branched of from Radeon it is possible that the same
changes apply there as well. Since it looks like you created those
patches at least partially automatically could you run your tool on the
Radeon code once more as well?
Thanks in advance,
Christian.
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> index 5533434..b7d0425 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> @@ -111,12 +111,9 @@ int amdgpu_driver_load_kms(struct drm_device *dev, unsigned long flags)
> /* Call ACPI methods: require modeset init
> * but failure is not fatal
> */
> - if (!r) {
> - acpi_status = amdgpu_acpi_init(adev);
> - if (acpi_status)
> - dev_dbg(&dev->pdev->dev,
> - "Error during ACPI methods call\n");
> - }
> + acpi_status = amdgpu_acpi_init(adev);
> + if (acpi_status)
> + dev_dbg(&dev->pdev->dev, "Error during ACPI methods call\n");
>
> if (amdgpu_device_is_px(dev)) {
> pm_runtime_use_autosuspend(dev->dev);
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2015-06-11 9:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-11 8:19 [patch] drm/amdgpu: remove an unnecessary condition Dan Carpenter
2015-06-11 9:26 ` Christian König [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5579542C.1060003@amd.com \
--to=christian.koenig@amd.com \
--cc=Qingqing.Wang@amd.com \
--cc=airlied@linux.ie \
--cc=alexander.deucher@amd.com \
--cc=dan.carpenter@oracle.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=marek.olsak@amd.com \
--cc=young.yang@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox