From patchwork Sun Feb 1 11:59:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 5756641 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6EFC39F336 for ; Sun, 1 Feb 2015 12:00:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9BA2E201F4 for ; Sun, 1 Feb 2015 12:00:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CFA6C201F2 for ; Sun, 1 Feb 2015 12:00:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752956AbbBAMAV (ORCPT ); Sun, 1 Feb 2015 07:00:21 -0500 Received: from mail-wi0-f171.google.com ([209.85.212.171]:51057 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752855AbbBAMAQ (ORCPT ); Sun, 1 Feb 2015 07:00:16 -0500 Received: by mail-wi0-f171.google.com with SMTP id l15so11279454wiw.4 for ; Sun, 01 Feb 2015 04:00:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TsIM/qPPLqH88x46MYGwvf3wkMj1mf1zUT4+J+d2w9Q=; b=Pv5JF/1wvNW83Z6luk/sOvrZzyPhcI1+rZsCAqJasKE5Nr/OmNhyF/4kUctZVoHi2W na2YcAjk+a1IJYTWeTVtduMsG9j0EkoEuVEMgfkmnMdWirJwPYfrA+PpFEQxRnB1R7Ov CbJLopmEbfON3W/eeCZX+gbP6NNEV2STqoL258pGzqC7PaCSIRQHqQFXOadloshwI+Hi 6zezZqLKUhpdh2wpxMq7FFvc+R1eUdsRT4pLcoMr2X77t4RCjI3PUHUsrj3ve2lNP2Xe eP2+ggZ3irqX7SUetO/2ubREqtbRbFjgL2Me3r+rvasbQ/Jhe8hMBwojPCrxVZpSfnlg CjwA== X-Received: by 10.180.182.72 with SMTP id ec8mr13956761wic.53.1422792015721; Sun, 01 Feb 2015 04:00:15 -0800 (PST) Received: from tipsey.3.home (94.196.240.163.threembb.co.uk. [94.196.240.163]) by mx.google.com with ESMTPSA id ud9sm15074446wib.5.2015.02.01.04.00.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 01 Feb 2015 04:00:15 -0800 (PST) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, Malcolm Priestley Subject: [PATCH 5/6] staging: vt6656: vnt_fill_cts_head remove unneeded NULL check. Date: Sun, 1 Feb 2015 11:59:42 +0000 Message-Id: <1422791983-3408-5-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1422791983-3408-1-git-send-email-tvboxspy@gmail.com> References: <1422791983-3408-1-git-send-email-tvboxspy@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_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 union vnt_tx_data_head is nolonger detached from main vnt_tx_buffer structure so this check is unnecessary. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6656/rxtx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c index b74f672..3b90497 100644 --- a/drivers/staging/vt6656/rxtx.c +++ b/drivers/staging/vt6656/rxtx.c @@ -525,9 +525,6 @@ static u16 vnt_fill_cts_head(struct vnt_usb_send_context *tx_context, u32 cts_frame_len = 14; u16 current_rate = tx_context->tx_rate; - if (!head) - return 0; - if (tx_context->fb_option) { /* Auto Fall back */ struct vnt_cts_fb *buf = &head->cts_g_fb;