From patchwork Sat Dec 18 22:05:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesper Juhl X-Patchwork-Id: 418531 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 oBIMWH8o009624 for ; Sat, 18 Dec 2010 22:32:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752483Ab0LRWOa (ORCPT ); Sat, 18 Dec 2010 17:14:30 -0500 Received: from swampdragon.chaosbits.net ([90.184.90.115]:16901 "EHLO swampdragon.chaosbits.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752238Ab0LRWO2 (ORCPT ); Sat, 18 Dec 2010 17:14:28 -0500 Received: by swampdragon.chaosbits.net (Postfix, from userid 1000) id 796599403D; Sat, 18 Dec 2010 23:05:02 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by swampdragon.chaosbits.net (Postfix) with ESMTP id 72A9F9403B; Sat, 18 Dec 2010 23:05:02 +0100 (CET) Date: Sat, 18 Dec 2010 23:05:02 +0100 (CET) From: Jesper Juhl To: linux-media@vger.kernel.org cc: Mauro Carvalho Chehab , Steven Toth , Tejun Heo , linux-kernel@vger.kernel.org Subject: [PATCH] saa7164: Remove pointless conditional and save a few bytes in saa7164_downloadfirmware(). Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 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.3 (demeter1.kernel.org [140.211.167.41]); Sat, 18 Dec 2010 22:32:23 +0000 (UTC) diff --git a/drivers/media/video/saa7164/saa7164-fw.c b/drivers/media/video/saa7164/saa7164-fw.c index 484533c..af71367 100644 --- a/drivers/media/video/saa7164/saa7164-fw.c +++ b/drivers/media/video/saa7164/saa7164-fw.c @@ -608,8 +608,6 @@ int saa7164_downloadfirmware(struct saa7164_dev *dev) ret = 0; out: - if (fw) - release_firmware(fw); - + release_firmware(fw); return ret; }