Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1359177pxj; Wed, 19 May 2021 04:24:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgIz4RuDLLGLioGOHB1zFUDfwB+80BQIaGfXFxsb3SOQRRT692bWk5+T+BT2L2mFeP8jh/ X-Received: by 2002:a6b:6b11:: with SMTP id g17mr1295725ioc.72.1621423474476; Wed, 19 May 2021 04:24:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621423474; cv=none; d=google.com; s=arc-20160816; b=QrM1tDW9xLgrhEfttGDz6O4wp6JdJFur7gjjn8Ga+553N1Pkt/DmAjmgHtRp9s26+W flcJfY5mQOnK5ogBSuMib4GzrSVZSw5s5UJnIB6jlwKu8ER9eRXNTgqNqcMpAIKr7ySw 44/QJUKKUxFK9LKhwo+hmIhF7HWXuF4Q/JSygwluyH0TnLf5swgwz64hrooPoykzkvpV JzjOdyY0f+KpjheMQOEmhr3LGsLxvwBLqZtABiBPqdGTyykiouIvAILBd95nk5hKMUij neL7LqaaoO67lw+XyorLuBj51Bo7emM/ZKb5lAXgMEbJWiJkd4yRr58GNO0ZfgXjWQrb QHnw== 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 :message-id:date:subject:to:from; bh=bwUn5VfvmzHS1Tv54zXSoVQnaIadzXa8IogclqpAMCE=; b=AozHVEsi8S1uCBx6OsPAt8U5cLmcF/cDmEqoDim/lzyhXcR28M0BxtdXKr1VIjY6tF KWbFTZNvNa7sBXdL4jg9GhexXT6F9qR4+DZMEMOyMojSAv0CO/rvVOnJCMLBYFZLDuWm LoYPzFUG26uRcK8Ax/oHGsc/kXURPNOjqGMqiXx0iJru13zHs9LGh4YLsdyLy1HAYHwM bikcCqvadp4kO+zghHxPg5wp5/5XLiDJCn0KsRIbJ3wC+MJzNBekLaT/xn6RwHmOpumk 2YDF6Y9k/z4uN36KrZLDQWrgqEfCUuX9wA8TxrIBwS6D13/Ikhj9zw7vW6X/sVt1hcTZ prQg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si4158238jaq.7.2021.05.19.04.24.21; Wed, 19 May 2021 04:24:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238233AbhERCct (ORCPT + 99 others); Mon, 17 May 2021 22:32:49 -0400 Received: from mail-m121144.qiye.163.com ([115.236.121.144]:50378 "EHLO mail-m121144.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234963AbhERCct (ORCPT ); Mon, 17 May 2021 22:32:49 -0400 X-Greylist: delayed 521 seconds by postgrey-1.27 at vger.kernel.org; Mon, 17 May 2021 22:32:48 EDT Received: from Wanjb.localdomain (unknown [36.152.145.182]) by mail-m121144.qiye.163.com (Hmail) with ESMTPA id 29208AC0444; Tue, 18 May 2021 10:22:48 +0800 (CST) From: Wan Jiabing To: Greg Kroah-Hartman , Fabio Aiuto , Marco Cesati , Jiabing Wan , Ivan Safonov , Ross Schmidt , Colin Ian King , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] staging: rtl8723bs: os_dep: Align comments and add a blank line Date: Tue, 18 May 2021 10:20:54 +0800 Message-Id: <20210518022207.83513-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZGklITFYdGk5NGh9DThhLTxpVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6OAg6Pgw*Cj8VTjQWDjgtMjYI SjowFBVVSlVKTUlKSEtPTk1DTE1JVTMWGhIXVQwaFRESGhkSFRw7DRINFFUYFBZFWVdZEgtZQVlI TVVKTklVSk9OVUpDSVlXWQgBWUFJT0hCNwY+ X-HM-Tid: 0a797d486a20b039kuuu29208ac0444 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiabing Wan Fixing the following checkpatch warnings: WARNING: Block comments should align the * on each line WARNING: Missing a blank line after declarations Signed-off-by: Jiabing Wan --- drivers/staging/rtl8723bs/os_dep/osdep_service.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/osdep_service.c b/drivers/staging/rtl8723bs/os_dep/osdep_service.c index c58555a4012f..2d965e62347f 100644 --- a/drivers/staging/rtl8723bs/os_dep/osdep_service.c +++ b/drivers/staging/rtl8723bs/os_dep/osdep_service.c @@ -7,10 +7,10 @@ #include #include -/* -* Translate the OS dependent @param error_code to OS independent RTW_STATUS_CODE -* @return: one of RTW_STATUS_CODE -*/ +/** + * Translate the OS dependent @param error_code to OS independent RTW_STATUS_CODE + * @return: one of RTW_STATUS_CODE + */ inline int RTW_STATUS_CODE(int error_code) { if (error_code >= 0) @@ -262,6 +262,7 @@ bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf) void *rtw_cbuf_pop(struct rtw_cbuf *cbuf) { void *buf; + if (rtw_cbuf_empty(cbuf)) return NULL; -- 2.20.1