From patchwork Mon May 13 11:10:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonid Kegulskiy X-Patchwork-Id: 2558201 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id E987CE00D9 for ; Mon, 13 May 2013 11:19:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754416Ab3EMLSu (ORCPT ); Mon, 13 May 2013 07:18:50 -0400 Received: from m1plsmtpa01-08.prod.mesa1.secureserver.net ([64.202.165.187]:41656 "EHLO m1plsmtpa01-08.prod.mesa1.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752943Ab3EMLS2 (ORCPT ); Mon, 13 May 2013 07:18:28 -0400 X-Greylist: delayed 457 seconds by postgrey-1.27 at vger.kernel.org; Mon, 13 May 2013 07:18:28 EDT Received: from ubaduba.hsd1.ca.comcast.net ([24.6.191.72]) by m1plsmtpa01-08.prod.mesa1.secureserver.net with id bPAq1l00a1aAMo801PArD2; Mon, 13 May 2013 04:10:51 -0700 From: Leonid Kegulskiy To: hverkuil@xs4all.nl Cc: Leonid Kegulskiy , Linux Media Mailing List Subject: [PATCH 1/4] [media] hdpvr: Removed unnecessary get_video_info() call from hdpvr_device_init() Date: Mon, 13 May 2013 04:10:41 -0700 Message-Id: <1368443444-12492-1-git-send-email-leo@lumanate.com> X-Mailer: git-send-email 1.8.1.2 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Signed-off-by: Leonid Kegulskiy --- drivers/media/usb/hdpvr/hdpvr-core.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/media/usb/hdpvr/hdpvr-core.c b/drivers/media/usb/hdpvr/hdpvr-core.c index 8247c19..cb69405 100644 --- a/drivers/media/usb/hdpvr/hdpvr-core.c +++ b/drivers/media/usb/hdpvr/hdpvr-core.c @@ -220,7 +220,6 @@ static int hdpvr_device_init(struct hdpvr_device *dev) { int ret; u8 *buf; - struct hdpvr_video_info *vidinf; if (device_authorization(dev)) return -EACCES; @@ -242,13 +241,6 @@ static int hdpvr_device_init(struct hdpvr_device *dev) "control request returned %d\n", ret); mutex_unlock(&dev->usbc_mutex); - vidinf = get_video_info(dev); - if (!vidinf) - v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, - "no valid video signal or device init failed\n"); - else - kfree(vidinf); - /* enable fan and bling leds */ mutex_lock(&dev->usbc_mutex); buf[0] = 0x1;