From patchwork Mon Oct 11 09:27:32 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 245091 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 o9B9SDk0025907 for ; Mon, 11 Oct 2010 09:28:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753996Ab0JKJ1r (ORCPT ); Mon, 11 Oct 2010 05:27:47 -0400 Received: from mail.pripojeni.net ([217.66.174.14]:45365 "EHLO smtp.pripojeni.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1753483Ab0JKJ1p (ORCPT ); Mon, 11 Oct 2010 05:27:45 -0400 Received: from localhost.localdomain ([217.66.174.142]) by smtp.pripojeni.net (Kerio Connect 7.1.1); Mon, 11 Oct 2010 11:27:33 +0200 From: Jiri Slaby To: linville@tuxdriver.com Cc: johannes.berg@intel.com, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, jirislaby@gmail.com Subject: [PATCH 1/1] WIRELESS: at76c50x, remove unneeded NULL check Date: Mon, 11 Oct 2010 11:27:32 +0200 Message-Id: <1286789252-14031-1-git-send-email-jslaby@suse.cz> X-Mailer: git-send-email 1.7.3.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@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]); Mon, 11 Oct 2010 09:28:14 +0000 (UTC) diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c index 91c5f73..1476314 100644 --- a/drivers/net/wireless/at76c50x-usb.c +++ b/drivers/net/wireless/at76c50x-usb.c @@ -1525,8 +1525,7 @@ static void at76_rx_tasklet(unsigned long param) if (priv->device_unplugged) { at76_dbg(DBG_DEVSTART, "device unplugged"); - if (urb) - at76_dbg(DBG_DEVSTART, "urb status %d", urb->status); + at76_dbg(DBG_DEVSTART, "urb status %d", urb->status); return; }