From patchwork Wed Jan 11 19:56:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 42174 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3510400wrt; Wed, 11 Jan 2023 12:00:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXsOYPHbp9HZ4zfDq1sqPjPwLPb4yx7sxyVA9H/ltXLjtDfMiMdL0ZR5byqDki14nif3crna X-Received: by 2002:a17:907:6d26:b0:857:b916:94c1 with SMTP id sa38-20020a1709076d2600b00857b91694c1mr9618412ejc.61.1673467259083; Wed, 11 Jan 2023 12:00:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673467259; cv=none; d=google.com; s=arc-20160816; b=zfnY6UkP/S/YhkSXDcA5uEVtA+j3V68QOkM1Ph5k0hH8Pvt4catoh/pVe7dSIGVmbo u8rR1y6j4ms+vb+yK7+dpFWcDWxuICrKttuynKGoQZT1ooXqBt4pmaEep+M/X845tn6E U/DvCKkUYN4nJCrRAVTogI5Cocl0sTmAEC8l+h19/3UjoYnMTFc7TwKt7dovwNRwylMv 4dAapDMKv/hqxKVdjCfqHHgM05341iLE0SbQkyN2QINfPz90Gt+ccrgQi+SyE9qzGD+m fMrXiwbCQhNfxiHbqYphO5bNbQ6xCxLCPP1ajyVy0GArcpS/0cwl/O7Bs4YYAVSuzWKO kUkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=LuN/u4Nv+cz1JhgbvEoB1DJqUaT4TS7jT2ReZJoqe+U=; b=W+gealiQY9yBG2+yeVbBqlFnPkPWoOqmCxJhyBJaP6bUJY1XiPC2jC7yBZ6hSwWVHL /Ojuf4p+4vP3xz5r6hDPr0pm1IA5GL7ana5JkPfJgAmy1AJhSf6wBsIiewd4pJvche6M hep5ymCQsrQFIDkepiXcbKSyCPBMSrDKRymE0XAnyBC/FXRnb5nzv1OxfW3KmmLRkzSH sFk6l4sMJC4q+ONFALrF7xGhedOyP8/kdrXa/dtZdh5vY1m51/n55lc6BsE+eHvVwgdg i1HQ+A6FJiKX6aJs+7yYLLqrVgLNRlaIaiVEqjyyFamd030YOcSC4Ho2pTDyFyX2MALJ 2GdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dp18-20020a170906c15200b00862fa9c105csi947166ejc.82.2023.01.11.12.00.34; Wed, 11 Jan 2023 12:00:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239631AbjAKT6X (ORCPT + 99 others); Wed, 11 Jan 2023 14:58:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235351AbjAKT5L (ORCPT ); Wed, 11 Jan 2023 14:57:11 -0500 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52976183AA for ; Wed, 11 Jan 2023 11:57:10 -0800 (PST) Received: from dslb-188-096-145-172.188.096.pools.vodafone-ip.de ([188.96.145.172] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1pFhDd-0005F2-OS; Wed, 11 Jan 2023 20:57:05 +0100 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , Pavel Skripkin , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 16/20] staging: r8188eu: remove usb buffer macros Date: Wed, 11 Jan 2023 20:56:36 +0100 Message-Id: <20230111195640.306748-17-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230111195640.306748-1-martin@kaiser.cx> References: <20230111195640.306748-1-martin@kaiser.cx> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754757604962272531?= X-GMAIL-MSGID: =?utf-8?q?1754757604962272531?= Remove two unused macros that allocate and free usb buffers. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/include/rtw_io.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/staging/r8188eu/include/rtw_io.h b/drivers/staging/r8188eu/include/rtw_io.h index 900ed2c648d4..0d2aa432f88d 100644 --- a/drivers/staging/r8188eu/include/rtw_io.h +++ b/drivers/staging/r8188eu/include/rtw_io.h @@ -16,12 +16,6 @@ #include #include -#define rtw_usb_buffer_alloc(dev, size, dma) \ - usb_alloc_coherent((dev), (size), (in_interrupt() ? \ - GFP_ATOMIC : GFP_KERNEL), (dma)) -#define rtw_usb_buffer_free(dev, size, addr, dma) \ - usb_free_coherent((dev), (size), (addr), (dma)) - struct intf_priv; struct intf_hdl;