From patchwork Fri Sep 20 08:36:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2915661 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 98320BFF05 for ; Fri, 20 Sep 2013 08:36:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8AD3C201DD for ; Fri, 20 Sep 2013 08:36:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 798A7201D3 for ; Fri, 20 Sep 2013 08:36:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754330Ab3ITIgS (ORCPT ); Fri, 20 Sep 2013 04:36:18 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:59139 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754252Ab3ITIgR (ORCPT ); Fri, 20 Sep 2013 04:36:17 -0400 Received: by mail-pa0-f45.google.com with SMTP id bg4so453493pad.4 for ; Fri, 20 Sep 2013 01:36:17 -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=djpACq9LGMJR44OyxKxI4eOfyMDKQW/j4AUGMGnaRjo=; b=fmniSPj7m4x1uo6+SYa+FKYO4HF5SE6E10rjt2mB2G9Mf/eqxkPdUWwhEkdj5KBxRm M71asRGIpXTCxpoymLvqjv73Gp5w/UxWA8xnXlb5BjtHbluedyp8/z9dKQeSgbwHw78e qD5iMCkqYMTxiOm5w5E+JlBd7FmJaDnBpXweA7oYvQwKXNu0mux9+DjMdRzbU7AwIghI WedZFQE2ROUU0GTKHeVGxO3F4oUqaWMtr+47yM6gZTX0iuXSHJC8AM/FRxXrlL7sgg8R g5qDrHjFsEWZs7zN6oO+9LOUoKuF7tbIAq/auu9KxoTeKVsogybMHetIlpXfZfHj2Lh6 sgPg== X-Gm-Message-State: ALoCoQkA7BNhKZJz6xKqXMiWDfCK3UHvo2anhkue1Cgw5KHsWSP6kQQuPHWBFQZDfkvcUdsN0dLV X-Received: by 10.66.218.198 with SMTP id pi6mr7479139pac.107.1379666177363; Fri, 20 Sep 2013 01:36:17 -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:17 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: m.chehab@samsung.com, sachin.kamat@linaro.org, Manu Abraham Subject: [PATCH 4/9] [media] pci: mantis: Remove redundant pci_set_drvdata Date: Fri, 20 Sep 2013 14:06:16 +0530 Message-Id: <1379666181-19546-4-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: Manu Abraham Acked-by: Manu Abraham --- drivers/media/pci/mantis/mantis_pci.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/pci/mantis/mantis_pci.c b/drivers/media/pci/mantis/mantis_pci.c index a846036..9e89e04 100644 --- a/drivers/media/pci/mantis/mantis_pci.c +++ b/drivers/media/pci/mantis/mantis_pci.c @@ -143,7 +143,6 @@ fail1: fail0: dprintk(MANTIS_ERROR, 1, "ERROR: <%d> exiting", ret); - pci_set_drvdata(pdev, NULL); return ret; } EXPORT_SYMBOL_GPL(mantis_pci_init); @@ -161,7 +160,6 @@ void mantis_pci_exit(struct mantis_pci *mantis) } pci_disable_device(pdev); - pci_set_drvdata(pdev, NULL); } EXPORT_SYMBOL_GPL(mantis_pci_exit);