Received: by 10.223.176.5 with SMTP id f5csp1763251wra; Sun, 4 Feb 2018 11:29:40 -0800 (PST) X-Google-Smtp-Source: AH8x227DLj1Kw1j5EUWhdyUjf/L5wy/Q2YntzTraqINXkeiO6uN0I72W4Ae7RmNEhDgqDCGl9JBT X-Received: by 10.98.17.80 with SMTP id z77mr23790634pfi.163.1517772580310; Sun, 04 Feb 2018 11:29:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517772580; cv=none; d=google.com; s=arc-20160816; b=wWU372iKJTkJHL0xlCxOCDVA84UQ0drivOXWzaANgjLEWbVEO4EJyHOswMEzyOh/Xx j7/tDrDB+fd2VokZfLDSQDut3lTsrXikkRCk9T7kkmSJ/5caSM5iwspBqJ6ko9WgfabF zqahHrteTMAdn/8XmMQSXQnhRG6PtKvtWZ8iuYuzQmb8pSd/WB+ZUF5ylTWplH3OBJpD t1c9koB0nKCzeU3fY95ESfUZm+3JlySTWAQiRQ+59EHP//LdJ5IxNuHXNLWKXyn2bbe8 zM+gaBUcBDXJI5JrKZhviXaSMDX9OzeOATmLWsT8P2MCYpOqtWh2hBQponjoMwFHpaKw nlzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=mzTYOFStdzkKExuivOFVQiR01DsfmQYyoWHXXq67F4E=; b=XyjO2XFkvuk2CX5MYsQtm36BMy8rPE6qQpvLARZ/4DGvS3oZyqCqKefCz03z9r2IqB G88VxvghAvD0RJ4aClEzhGerFcgWRVbN2aoVs1ibEBYMuvndDBlUkw4FCO6PZp7m79JY vNPRmr7ACh4aPea8YH9y6tvgJKww8q7ErN7ltSpOVY/CX99Gqst8pd/kr5qxo5tumeUv q7s9WzkqOC8ij8OieSI9f8sFGLnuX56QyHdJrZuatM3Ji4yTQjM1AFe7zoj2FSIvi0pz q6H8YOQoMsTTWLhnFW89mLxtVL1xFELSUsT+kvqQc7DpfQs1zTY6OcEOoMYwO5czd5Hg GMig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nYD8PX7o; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x12-v6si3478068pln.126.2018.02.04.11.29.25; Sun, 04 Feb 2018 11:29:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nYD8PX7o; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752494AbeBDT1y (ORCPT + 99 others); Sun, 4 Feb 2018 14:27:54 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:34434 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752105AbeBDT10 (ORCPT ); Sun, 4 Feb 2018 14:27:26 -0500 Received: by mail-lf0-f66.google.com with SMTP id k19so38852306lfj.1 for ; Sun, 04 Feb 2018 11:27:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mzTYOFStdzkKExuivOFVQiR01DsfmQYyoWHXXq67F4E=; b=nYD8PX7o4ULXr4lnDH9C87tGwp3vLG7ooEEOIaE0840704lUXMKxCvCUrTD61oD5hw WBedVRgiyUyO38KRvfLWGTXyvb/OPmSvP08WMLDfMNekB4B6hXrkgr8MFcuQU7IgFbU6 JF1/d8KlXx6aayFTAsyx+LXaX+nx/l4v2tsoCsgZnq6Y8rfzGuc1seZnnpv0b34EP2xR twKaMMGidpmbylAzAvPsbDctYqfkyWyGBbvI6L23GKgblTAxmKFOu4M0eUHFmk43rToy I8FST6fsMtecEgDSAlTh2v9nbtcCPHl/9RfFulbjcUPOwe9q7ma6QTgJ82PXL9Y1LBD1 Ee/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mzTYOFStdzkKExuivOFVQiR01DsfmQYyoWHXXq67F4E=; b=JmaWT1UyV3FOE0iU0IcMcb6IGDYID4josAvVJi1WI+PYDMnp2LqIOn3g4zjsG8nFkB VySHgujadxxa1PgUvPFpndvVqwA7CI7di4VjZ12+BmTyDzDIw40d1gJZZbt1m0HXKodP Mzum6wu46GP45EfmjC05PP1oRjQDztpSC7SXAD2u37OMweo2fM94MvkxhbGwPsAYX1ZW qhrBLYU9fy39SRpVhckBCZOdyne3OpSfO0EE/YV2ROOelJLizVXt3HBfcoA6ENm8d7t/ o50yhX+B6U3U7dqNQNVlKWBdvAm0xJvu1J4AGbuT3Eh+OC2UzRZG54cSx7Unp7G1Ky52 z87g== X-Gm-Message-State: AKwxytdqnJ839r0usaBAsqNEabf9p0ABHbO9VAXWrArnftu8oDLP6X3N LcSE7QurZysyvl/9xJZNDPc= X-Received: by 10.46.71.81 with SMTP id u78mr22329507lja.35.1517772445319; Sun, 04 Feb 2018 11:27:25 -0800 (PST) Received: from alpha (pppoe.178-66-99-36.dynamic.avangarddsl.ru. [178.66.99.36]) by smtp.gmail.com with ESMTPSA id s9sm1504290lfe.48.2018.02.04.11.27.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 04 Feb 2018 11:27:24 -0800 (PST) Received: (nullmailer pid 13254 invoked by uid 1000); Sun, 04 Feb 2018 19:28:05 -0000 From: Ivan Safonov To: Greg Kroah-Hartman Cc: Janani Sankara Babu , Ivan Safonov , Julia Lawall , Gargi Sharma , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] staging:r8188eu: Remove unused struct pkt_file Date: Sun, 4 Feb 2018 22:27:39 +0300 Message-Id: <20180204192739.13202-4-insafonov@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180204192739.13202-1-insafonov@gmail.com> References: <20180204192739.13202-1-insafonov@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Struct pkt_file is unused now, so remove it and correponding functions. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/xmit_osdep.h | 13 --------- drivers/staging/rtl8188eu/os_dep/xmit_linux.c | 37 -------------------------- 2 files changed, 50 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/xmit_osdep.h b/drivers/staging/rtl8188eu/include/xmit_osdep.h index 959ef4b3066c..00ebad88f0d1 100644 --- a/drivers/staging/rtl8188eu/include/xmit_osdep.h +++ b/drivers/staging/rtl8188eu/include/xmit_osdep.h @@ -18,15 +18,6 @@ #include #include -struct pkt_file { - struct sk_buff *pkt; - size_t pkt_len; /* the remainder length of the open_file */ - unsigned char *cur_buffer; - u8 *buf_start; - u8 *cur_addr; - size_t buf_len; -}; - #define NR_XMITFRAME 256 struct xmit_priv; @@ -43,10 +34,6 @@ int rtw_os_xmit_resource_alloc(struct adapter *padapter, struct xmit_buf *pxmitbuf, u32 alloc_sz); void rtw_os_xmit_resource_free(struct xmit_buf *pxmitbuf); -uint rtw_remainder_len(struct pkt_file *pfile); -void _rtw_open_pktfile(struct sk_buff *pkt, struct pkt_file *pfile); -uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen); - void rtw_os_pkt_complete(struct adapter *padapter, struct sk_buff *pkt); void rtw_os_xmit_complete(struct adapter *padapter, struct xmit_frame *pxframe); diff --git a/drivers/staging/rtl8188eu/os_dep/xmit_linux.c b/drivers/staging/rtl8188eu/os_dep/xmit_linux.c index 8bf8248e4ac7..8ac9567c954d 100644 --- a/drivers/staging/rtl8188eu/os_dep/xmit_linux.c +++ b/drivers/staging/rtl8188eu/os_dep/xmit_linux.c @@ -22,43 +22,6 @@ #include #include -uint rtw_remainder_len(struct pkt_file *pfile) -{ - return pfile->buf_len - ((size_t)(pfile->cur_addr) - - (size_t)(pfile->buf_start)); -} - -void _rtw_open_pktfile(struct sk_buff *pktptr, struct pkt_file *pfile) -{ - - pfile->pkt = pktptr; - pfile->cur_addr = pktptr->data; - pfile->buf_start = pktptr->data; - pfile->pkt_len = pktptr->len; - pfile->buf_len = pktptr->len; - - pfile->cur_buffer = pfile->buf_start; - -} - -uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen) -{ - uint len = 0; - - - len = rtw_remainder_len(pfile); - len = min(rlen, len); - - if (rmem) - skb_copy_bits(pfile->pkt, pfile->buf_len-pfile->pkt_len, rmem, len); - - pfile->cur_addr += len; - pfile->pkt_len -= len; - - - return len; -} - int rtw_os_xmit_resource_alloc(struct adapter *padapter, struct xmit_buf *pxmitbuf, u32 alloc_sz) { int i; -- 2.13.6