From patchwork Sun Jan 23 09:16:54 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Strakh X-Patchwork-Id: 498711 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0N9HXMI031214 for ; Sun, 23 Jan 2011 09:17:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751329Ab1AWJRF (ORCPT ); Sun, 23 Jan 2011 04:17:05 -0500 Received: from mail-ey0-f174.google.com ([209.85.215.174]:62305 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751261Ab1AWJRB (ORCPT ); Sun, 23 Jan 2011 04:17:01 -0500 Received: by eye27 with SMTP id 27so1500244eye.19 for ; Sun, 23 Jan 2011 01:16:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=1wXKjs5iCdMnNrA5xh1tb//PPhlmamsn9WRtBL0On9A=; b=X7+Lwu/QpoNApYZ6vZvYLz0/9VCj+EvGX1kh8/swQna5bEkXYIJLXF9CLFDfRWMjVx vOJdBQcNTEc4zGcHVlzJPYazJm/3dh5/m+hVCCVNWvAZBn1xF+gTOsZilbRKn0bLcDsq eg/GP36PgxPhUt4nZLMyJRfbrmtTwQs5HLq0Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=mqqyVq1U7/SAbqA7dIokOKZANsVY4MN4X8yuoEAIxE3KBpRQi+7vqsvpKffLdz0kyK H4rDaD3qXCUyYlxEkFPGvEFnlrONBTgkzdYenzhz5rqsc4f8eyOedpmb7d/+uPRinmt3 dfuHP9xlAzu5rmx49GhSVzW/blDovsfGrb+Nw= Received: by 10.213.34.193 with SMTP id m1mr3294560ebd.25.1295774219781; Sun, 23 Jan 2011 01:16:59 -0800 (PST) Received: from iceberg (ppp83-237-116-152.pppoe.mtu-net.ru [83.237.116.152]) by mx.google.com with ESMTPS id t50sm9097306eeh.12.2011.01.23.01.16.58 (version=SSLv3 cipher=RC4-MD5); Sun, 23 Jan 2011 01:16:58 -0800 (PST) From: Alexander Strakh To: mchehab@infradead.org Cc: tobias.lorenz@gmx.net, jy0922.shim@samsung.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Strakh , Alexander Strakh Subject: [PATCH 1/1] Media: radio: si470x: remove double mutex lock Date: Sun, 23 Jan 2011 12:16:54 +0300 Message-Id: <1295774214-3606-1-git-send-email-strakh@ispras.ru> X-Mailer: git-send-email 1.7.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sun, 23 Jan 2011 09:17:33 +0000 (UTC) diff --git a/drivers/media/radio/si470x/radio-si470x-common.c b/drivers/media/radio/si470x/radio-si470x-common.c index 60c176f..38ae6cd 100644 --- a/drivers/media/radio/si470x/radio-si470x-common.c +++ b/drivers/media/radio/si470x/radio-si470x-common.c @@ -460,7 +460,6 @@ static ssize_t si470x_fops_read(struct file *file, char __user *buf, count /= 3; /* copy RDS block out of internal buffer and to user buffer */ - mutex_lock(&radio->lock); while (block_count < count) { if (radio->rd_index == radio->wr_index) break;