Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2082505imj; Sun, 10 Feb 2019 18:14:22 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib9/yOShX/3AqculJ9EXc+jtQFGRWm15ptoT7mFSOGrFmmG2qsRpzBp8ceVIG5c+wHa+0CN X-Received: by 2002:a63:2bc4:: with SMTP id r187mr31358044pgr.306.1549851262219; Sun, 10 Feb 2019 18:14:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549851262; cv=none; d=google.com; s=arc-20160816; b=tL98cOYK92OvGzKo5q23xGeWhwjQQISQ6D5iJcvzmeoq0upfBTshPIouvT0Lw117Ws 4N4N3V2DwDYjNAwH9myC7eep3HXCXWc4zfJ4Ys7GGy+XS+L3+OG+dNOjmGjmmEwyaxcI cwsMYzMYfhdEX7tQK3aYMSo+ApN8LwvNG6kP3MeB9XIYV8i4kf7giGfL5q5ZHbfrZdlv pgv+uDHF3NzNEUV/33wbEDxFQO8uw4BkYSeaOguj/T4SMy87ovDYWChF19wVJoMOSVcA lvM0Zt1+NNqGvGqB0UsSgU26o+BklThXzw+Fv7wXxSA6Y2V9Lo58bHg/jfBKF/IaMCIY aIEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=bjqIgL0AhOkFBahQm9ZVsfi1fxa4k7X4EUNj+CXtRiY=; b=hYfMdZs55YSUJw6gtomI6k2jMxvUyhrxpeczunCYIQOoeHHNjOI/xANvUuJWOZ1Ge2 qu6KRkGylF3iWPV0OZL5Ztrrgt2aYNDy8yBQtN4cicoRmCCEb268Zy57yW6bYFrsog+o m3S/1SgH0W4uHxEVXh09yibR4rcYLr8hSWEmTksYtpdBVyH+hZlni0LmjR8ezazSdsDC 6QYjiNV2cYFUSB/O2GcrQxwTGoLiBJrsdIBySZ0yiBPo9hTNUcerJ+N7D6aB40WNZnZN vURcoioGIGgVH4ZmcihhdAdQ6ckyyVTWqMuvya+7iD/NQhSdbHccA7NJ6PcFxjjPLn9e pOtA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si8615405plo.108.2019.02.10.18.14.06; Sun, 10 Feb 2019 18:14:22 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727018AbfBKCNt (ORCPT + 99 others); Sun, 10 Feb 2019 21:13:49 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:28651 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726663AbfBKCNs (ORCPT ); Sun, 10 Feb 2019 21:13:48 -0500 X-UUID: 9ce9099a8d274005ab948555a5301d05-20190211 X-UUID: 9ce9099a8d274005ab948555a5301d05-20190211 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 475461017; Mon, 11 Feb 2019 10:13:43 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 11 Feb 2019 10:13:42 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 11 Feb 2019 10:13:42 +0800 From: Ryder Lee To: Lorenzo Bianconi , Felix Fietkau , Kalle Valo CC: Roy Luo , , , , , Ryder Lee Subject: [PATCH] mt76: change the retun type of mt76_dma_attach() Date: Mon, 11 Feb 2019 10:13:41 +0800 Message-ID: <228fdddb9ca96e8ce861e324eb9039722cf18f49.1549850911.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to retun 0 in mt76_dma_attach(), so switch it to void. Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/dma.c | 3 +-- drivers/net/wireless/mediatek/mt76/dma.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/dma.c b/drivers/net/wireless/mediatek/mt76/dma.c index e2ba263..d934d72 100644 --- a/drivers/net/wireless/mediatek/mt76/dma.c +++ b/drivers/net/wireless/mediatek/mt76/dma.c @@ -522,10 +522,9 @@ int mt76_dma_tx_queue_skb(struct mt76_dev *dev, struct mt76_queue *q, .kick = mt76_dma_kick_queue, }; -int mt76_dma_attach(struct mt76_dev *dev) +void mt76_dma_attach(struct mt76_dev *dev) { dev->queue_ops = &mt76_dma_ops; - return 0; } EXPORT_SYMBOL_GPL(mt76_dma_attach); diff --git a/drivers/net/wireless/mediatek/mt76/dma.h b/drivers/net/wireless/mediatek/mt76/dma.h index 357cc35..e3292df 100644 --- a/drivers/net/wireless/mediatek/mt76/dma.h +++ b/drivers/net/wireless/mediatek/mt76/dma.h @@ -54,7 +54,7 @@ enum mt76_mcu_evt_type { EVT_EVENT_DFS_DETECT_RSP, }; -int mt76_dma_attach(struct mt76_dev *dev); +void mt76_dma_attach(struct mt76_dev *dev); void mt76_dma_cleanup(struct mt76_dev *dev); #endif -- 1.9.1