Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1335361rwp; Thu, 13 Jul 2023 09:18:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlEM0YQL4eeMgSuWqCM65WCeZDq5T1a/C0ln/R5brmsh1+vALZb7hUywjifRuEY15RBxtSWs X-Received: by 2002:aa7:cf8b:0:b0:51d:8aaf:5adc with SMTP id z11-20020aa7cf8b000000b0051d8aaf5adcmr2212207edx.14.1689265120115; Thu, 13 Jul 2023 09:18:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689265120; cv=none; d=google.com; s=arc-20160816; b=ZH05vaJ6Ky9lfSNneTFGOGEvKtjx3tez4TSymfHG0xLqikbxMCm07i9hNcNBwPI8g6 L6NNyN/7pN5OWteIrkX3ZbRTbPsFL4LTXwZSqgn9UQfv+Ogvwj/lffvoR0+yEdbWqeFt j1gY9+u/Gs39U+6QSGjX69r3SXHIApGvVkYSkw4Z5n901QZCEPczLxugYpaaXBSsi42u SJZMflKHC4NxXuBPalMT/nWMJs3I+jxoqey86UWLBOs1EdAGBHyjMGLlNg3LEXIdWH+v rFWHjhvg6bzXZ3V/Xi6G5eY3Y6rg5xnHgymnZOFSkderr6gmwutI2KSM4yatRePftN13 R9Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=USf3KyvVkLkhhDZVST6q185O7lr3loZWAHE+Xn3jUok=; fh=9p5G7bAj9J+Q/dV0aTB1eWPWQKFuRt0fHW4xKkHE+ac=; b=g3nBpvSM5bQ2l0n6Wef5Qv3fpt0kFBdsV8iV4rOYHb2G81FLX1v2SiZ6IIScfUcJr1 nIaVSM2RAyqbF6T8FD9sYaMl0q1pYjOzmr2tQ5lQyH+y2rKrpeQG0jhi7EKW5GBiCdVw s8OMthPEvT7T8fblnrngAT90mEZb4PonVteFd7lymYjf4IERO/WLQc1Q97R2PsATLa8a ymuJvQlg5nTvcoeqUPzjeZjXgYgC+mBn/VX54Wyt9tW2lKdMiK/MLGQofeH7glVTkSeV hiwl7I+7kvqGb5jYP7qEv1FunG07PzbP9Ze6xXKiquC6LdW+6ZdBliRS2cTusenjC6eO BEKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Uq8jlIF4; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x6-20020aa7d6c6000000b0051fde1c1bf7si411487edr.417.2023.07.13.09.18.22; Thu, 13 Jul 2023 09:18:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Uq8jlIF4; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231415AbjGMQAL (ORCPT + 59 others); Thu, 13 Jul 2023 12:00:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231156AbjGMQAL (ORCPT ); Thu, 13 Jul 2023 12:00:11 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F28E1BEB; Thu, 13 Jul 2023 09:00:10 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36DEQhrm004443; Thu, 13 Jul 2023 16:00:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=USf3KyvVkLkhhDZVST6q185O7lr3loZWAHE+Xn3jUok=; b=Uq8jlIF4K+2fCGYnwLqS05zzHWrNi+TYiBy+LNYki/LPoKXwohwH3rAt4RulgTwX8XFY O7EqjCSFky0F9iAlN3OEvAOElrLtPiTTm2qrQMTwZt8EanL1i/RU8rOWHs8TupG+n+nS mIwHSsEAcCaNDCep+Lg/g4B79d9tDgwZROeXkSHC9JmwKcoogyo+oM31KjEOM0v6hZeB NG8Iz0cmsKMwTvBb5dudYQzFX3msy7TFay+bibZ/wuO5LbDD5kOvtDcjb4M0ChHLdWkc pof1liIpWiv4Lpi0hRstJD8UAjNQmagzuyhDirDVKkU9l+52E00pI+7A56v6RjZTa0pJ /A== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rtk1qr8gv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Jul 2023 16:00:05 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36DG03u9018509 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 13 Jul 2023 16:00:03 GMT Received: from [10.111.182.44] (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Thu, 13 Jul 2023 09:00:02 -0700 Message-ID: <4b3512ee-ea9e-0d55-fa45-9a9f84832295@quicinc.com> Date: Thu, 13 Jul 2023 09:00:01 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v1] drivers: wireless: ath5k: fix parameter check in ath5k_debug_init_device Content-Language: en-US To: Minjie Du , Jiri Slaby , Nick Kossifidis , Luis Chamberlain , Kalle Valo , "open list:ATHEROS ATH5K WIRELESS DRIVER" , open list CC: References: <20230712124259.15096-1-duminjie@vivo.com> From: Jeff Johnson In-Reply-To: <20230712124259.15096-1-duminjie@vivo.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: JKXiMfiDLdULW9pe8Av-zxosjsBS5UUl X-Proofpoint-GUID: JKXiMfiDLdULW9pe8Av-zxosjsBS5UUl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-13_06,2023-07-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 suspectscore=0 adultscore=0 mlxscore=0 bulkscore=0 lowpriorityscore=0 mlxlogscore=839 clxscore=1011 phishscore=0 impostorscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307130141 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-wireless@vger.kernel.org subject prefix should be "wifi: ath5k: " On 7/12/2023 5:42 AM, Minjie Du wrote: > Make IS_ERR() judge the debugfs_create_dir() function return > in ath5k_debug_init_device(). > > Signed-off-by: Minjie Du > --- > drivers/net/wireless/ath/ath5k/debug.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/ath/ath5k/debug.c b/drivers/net/wireless/ath/ath5k/debug.c > index 4b41160e5..08058b3f7 100644 > --- a/drivers/net/wireless/ath/ath5k/debug.c > +++ b/drivers/net/wireless/ath/ath5k/debug.c > @@ -982,7 +982,7 @@ ath5k_debug_init_device(struct ath5k_hw *ah) > ah->debug.level = ath5k_debug; > > phydir = debugfs_create_dir("ath5k", ah->hw->wiphy->debugfsdir); > - if (!phydir) > + if (IS_ERR(phydir)) > return; > > debugfs_create_file("debug", 0600, phydir, ah, &fops_debug);