From patchwork Fri Sep 20 08:36:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2915681 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 26CA79F1BF for ; Fri, 20 Sep 2013 08:36:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 11533201D3 for ; Fri, 20 Sep 2013 08:36:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5C244201E7 for ; Fri, 20 Sep 2013 08:36:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754333Ab3ITIgU (ORCPT ); Fri, 20 Sep 2013 04:36:20 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:35627 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754252Ab3ITIgU (ORCPT ); Fri, 20 Sep 2013 04:36:20 -0400 Received: by mail-pa0-f50.google.com with SMTP id fb10so446115pad.23 for ; Fri, 20 Sep 2013 01:36:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RCrt1UrxpwFgEct97i0QLydzEZWHH7mOB8a1TsbRQs8=; b=k6YmMUav9oKM96GMqtk3fRjHOvFvMUknTlKaeSFu+PeQ6m761J4YtHtk9z4OgvxQpL kpp7coIdcIR0slKyXtsmE7JmBI4ewjYBRPcJxMWJysSwEMZzMvM9L5OyCtKJlOWPWRHq TO9Uy+UEWVGrL5HJQsN3jy3iXK7D/AiIiRvWIqp/Nsr9YshFmoUZ0TJBKZByjeZDATaT mJrIupduYI/cIdMqGvpHtIsAH3ne/jx3FE8WTchE60PtzUfLu/aAD0md9Js2IphcIdyF qT+OMSF2VXBDCr64UkupfzodMNRl39x5HlFTOxKBfHxC5x7skCN6vJJC/5Wd1UQHk7sT ReXg== X-Gm-Message-State: ALoCoQnfUR/8RAsb4TksdzbwDtvRTtgppIkJ0gbvv9f0om4gzIG2TNV0TbW2zDT/8fAEXt17OaOc X-Received: by 10.66.27.175 with SMTP id u15mr7373707pag.146.1379666179514; Fri, 20 Sep 2013 01:36:19 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id mr3sm14271180pbb.27.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Sep 2013 01:36:19 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: m.chehab@samsung.com, sachin.kamat@linaro.org, Andreas Oberritter Subject: [PATCH 5/9] [media] pci: pluto2: Remove redundant pci_set_drvdata Date: Fri, 20 Sep 2013 14:06:17 +0530 Message-Id: <1379666181-19546-5-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1379666181-19546-1-git-send-email-sachin.kamat@linaro.org> References: <1379666181-19546-1-git-send-email-sachin.kamat@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat Cc: Andreas Oberritter --- drivers/media/pci/pluto2/pluto2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/pci/pluto2/pluto2.c b/drivers/media/pci/pluto2/pluto2.c index 4938285..8164d74 100644 --- a/drivers/media/pci/pluto2/pluto2.c +++ b/drivers/media/pci/pluto2/pluto2.c @@ -736,7 +736,6 @@ err_pci_release_regions: err_pci_disable_device: pci_disable_device(pdev); err_kfree: - pci_set_drvdata(pdev, NULL); kfree(pluto); goto out; } @@ -765,7 +764,6 @@ static void pluto2_remove(struct pci_dev *pdev) pci_iounmap(pdev, pluto->io_mem); pci_release_regions(pdev); pci_disable_device(pdev); - pci_set_drvdata(pdev, NULL); kfree(pluto); }