Message ID | 4dcc6c6b-455f-d938-ab45-5597096007f0@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CC5A260574 for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 20 Jul 2016 17:51:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF8AD205AA for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 20 Jul 2016 17:51:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B245527CF9; Wed, 20 Jul 2016 17:51:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CDDA205AA for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 20 Jul 2016 17:51:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 239D06E0DB; Wed, 20 Jul 2016 17:51:00 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.web.de (mout.web.de [212.227.15.3]) by gabe.freedesktop.org (Postfix) with ESMTPS id 194F56E0DB for <dri-devel@lists.freedesktop.org>; Wed, 20 Jul 2016 17:50:56 +0000 (UTC) Received: from [192.168.1.2] ([77.181.180.179]) by smtp.web.de (mrweb004) with ESMTPSA (Nemesis) id 0MOUUv-1bSwJG2tcL-005nvI; Wed, 20 Jul 2016 19:50:47 +0200 Subject: [PATCH] GPU-DRM-nouveau: Delete an unnecessary check before the function call "pci_dev_put" To: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, Ben Skeggs <bskeggs@redhat.com>, Daniel Vetter <daniel@ffwll.ch>, David Airlie <airlied@linux.ie> References: <5307CAA2.8060406@users.sourceforge.net> <alpine.DEB.2.02.1402212321410.2043@localhost6.localdomain6> <530A086E.8010901@users.sourceforge.net> <alpine.DEB.2.02.1402231635510.1985@localhost6.localdomain6> <530A72AA.3000601@users.sourceforge.net> <alpine.DEB.2.02.1402240658210.2090@localhost6.localdomain6> <530B5FB6.6010207@users.sourceforge.net> <alpine.DEB.2.10.1402241710370.2074@hadrien> <530C5E18.1020800@users.sourceforge.net> <alpine.DEB.2.10.1402251014170.2080@hadrien> <530CD2C4.4050903@users.sourceforge.net> <alpine.DEB.2.10.1402251840450.7035@hadrien> <530CF8FF.8080600@users.sourceforge.net> <alpine.DEB.2.02.1402252117150.2047@localhost6.localdomain6> <530DD06F.4090703@users.sourceforge.net> <alpine.DEB.2.02.1402262129250.2221@localhost6.localdomain6> <5317A59D.4@users.sourceforge.net> <5447BF71.7040200@users.sourceforge.net> <559975EB.500@users.sourceforge.net> From: SF Markus Elfring <elfring@users.sourceforge.net> Message-ID: <4dcc6c6b-455f-d938-ab45-5597096007f0@users.sourceforge.net> Date: Wed, 20 Jul 2016 19:50:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 MIME-Version: 1.0 In-Reply-To: <559975EB.500@users.sourceforge.net> X-Provags-ID: V03:K0:Oxh3VUZUI9IrsIWfjRhLJoqU/DeNh4tEcsDyvvqOWnWCvMoORD7 EFpmhybrMdJB3+mnil9T/B3kJ0uf0hm+VpltRChpCGh2HcFLBq1JyL2pngMN3LoWuzVvG2l KSTYaj6U1KfG0kPvmA+J3hMc5yaoICA2NqE6lGjT0E1QkYnLvrTR3wcOc0cPtzSj+gQgvXm DuohZAsp2uiSEfo8mSM6w== X-UI-Out-Filterresults: notjunk:1; V01:K0:TdRuymDG7M8=:CPJ0OZkOafV819CZB8VpfO +3wpl2j8PJzFYavFTGTPaIDSEfD4orWp6oE5YR+Ow/31X0gip5Rj5I1HJIwCpwfAnnA8madHz 5Cpx3hqgc4HVaaf8yo338Ju5aj2E7VtlOFFUL65ijfEeI7viN6byGYDnneAYIoSEvHZO/g9Dv E9KUGfImU5ZkbABK+1bfWNpQ0wlswzbTO5sTY0grATcJcbrTMnBYZZKLMJ/cGx0pGpOV9Cd7C KORXKBJkJoxMljOPVRd1xB0FW9z4Yw9EwFva2pfKZ0puuBMwiBpFTlmA560y03FTG/qD0vOlg BmzXWN+NpSZSFtFg2ctO0lWAFK83uon/RcKl6hMHlB8f0dUlBWb9AJ+WRVaFt/gwTqgYGn3iX i9V8aR9iL97dTxpaODmmIsRo96qpPfpEx8Z1t+5l7YVIuVABKpbcNJIOVRdBtak25ZATbZPpO l6Ikn5Hy8cVahW07C+d7HdVe8OJtuitScvGxANprWW3Yu0xXzOtyieeyU7Mpo68PYCeQQwVKd tDuZxfonKzPFuW1fRm0Q8jgV5uHtKX3xL6Kt+04VK9c3E3LKRvrXaIVupdyC0AxW8TdkyGl04 pUqX9JVSzEFJ87ZTF/yYO3ow+DjfYsprX1ePbW8cysAUtVxwy92Ta17K0PPHMWpi0Tgi6rfx8 hO2J5d22tDNbFGJ6MhKJytYAfw0Yy4dQoSYO+qwn19wq3EZJfAdXmv+JQ511Tfw84qjhnUa9m T79vuFblrWW/mWAPgfjFgXC4BSLnhuEHKbHIcbSJ/cz2GctlhBAPzbxNGhEAihGyMqRe4T1as uBMEwBt Cc: Julia Lawall <julia.lawall@lip6.fr>, kernel-janitors@vger.kernel.org, LKML <linux-kernel@vger.kernel.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c index 66c1280..7b09841 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c @@ -525,8 +525,7 @@ nouveau_drm_unload(struct drm_device *dev) nouveau_vga_fini(drm); nvif_device_fini(&drm->device); - if (drm->hdmi_device) - pci_dev_put(drm->hdmi_device); + pci_dev_put(drm->hdmi_device); nouveau_cli_destroy(&drm->client); return 0; }