Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp88187pxb; Wed, 6 Apr 2022 23:13:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGVw744TqXAmr9FIH/3WGcnORwzh4JwHtBikompEbLV0MD/dyBGGURmnYTJ6+snP4kxaXh X-Received: by 2002:a17:907:3f86:b0:6df:ad43:583 with SMTP id hr6-20020a1709073f8600b006dfad430583mr11774270ejc.535.1649312013547; Wed, 06 Apr 2022 23:13:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649312013; cv=none; d=google.com; s=arc-20160816; b=SHA0jpSlK8BDHJyka/tPhZgpKM3s1MWe9U2cWC2QVqKkXyj9ZRsbFtPACrXnXKBR84 PldoGzZSDmjwCfxJkOm8ccwG0xZiaYJ6loTre5B7afDOVCJ0rECTHVhjnWCdambhj3LQ bnEXOi9tMXW7EDQYRcrLa6Z6o1D9nRX/VRte1vriCpMFn/mjHSGyk/ArC4PeYCHfY/DI NI+/GPnl8rRL9wzThWYZcVwp1NW6+CJP7f2BXFi3ZfyUNmRSbLf50JB8OrOM4tKwQa9m 7CLsxluYQ3O2xnOixsNYqaucaNKswUybeCeWhDypXwyhWu6d46tJiSjxCTKEgW1HxyTe nKag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:thread-index :content-transfer-encoding:mime-version:date:subject:in-reply-to :references:cc:to:from:message-id:dkim-signature; bh=PCUUj9sh+ZXg8xzwNDbyH1JMDapK+OEbw32C9DX7m4c=; b=TyDcF44h67gQwPMpdFpJNKwYiE3YPjxrdCsMzUkQCfkSjRnrC2kTnPO0uYdIe5fljy AaR2ruNg4r84rwEj6YtEWvD0cj7gQsTzxnOqZh++y9REE9lHFVEYd+aj41WzwoZHSfVK yCQtWk8FR+BgnChR/ZIFokyZAmLqMJxAF3OaWkEfPXwIo1dTLXuXnygj1SQG/Vz4bvlG eYhaTP5H+UmB3rk8lhA8PfW/Sjp2rJtJn2q9TDXOAjhTQL0dvBFr/6OZXf5zb01gZMae K6ZKsl8kbVukktwWih4PTo01YvpgIiHRJt07ndSmQk8WdLxvQbwQMsM7vWdE4TgO7BeP w6tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foxmail.com header.s=s201512 header.b=ewgdipJC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r14-20020a05640251ce00b004190205c28bsi15435108edd.401.2022.04.06.23.13.08; Wed, 06 Apr 2022 23:13:33 -0700 (PDT) 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; dkim=pass header.i=@foxmail.com header.s=s201512 header.b=ewgdipJC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231192AbiDGCGC (ORCPT + 99 others); Wed, 6 Apr 2022 22:06:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229942AbiDGCGB (ORCPT ); Wed, 6 Apr 2022 22:06:01 -0400 Received: from out162-62-57-64.mail.qq.com (out162-62-57-64.mail.qq.com [162.62.57.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD00DB7C51 for ; Wed, 6 Apr 2022 19:03:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1649297031; bh=PCUUj9sh+ZXg8xzwNDbyH1JMDapK+OEbw32C9DX7m4c=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=ewgdipJCBn/zIN1Mx5ZPSt1EkQZXnk/Orl0xU1U79+mrfgHdXoXfzSQEs8KU2UM6J UvJY1f3JTU9FFQaX3jyp4UgyJ1nWP3BgLfKqT+AaMvCfxLLGqSSQbYCtOdpUAnMpJv uHDzq3yoVX0GUT6fvupevGk7AMf4tNA5WCmKj72c= Received: from helloworld ([59.172.176.225]) by newxmesmtplogicsvrszc11.qq.com (NewEsmtp) with SMTP id F12E2A3; Thu, 07 Apr 2022 10:03:49 +0800 X-QQ-mid: xmsmtpt1649297029tfj245p8a Message-ID: X-QQ-XMAILINFO: MyirvGjpKb1jSx3AS0EqrsEW80j37bKcqodxlAv3QiavnCt/RjzS00hoUWAvhA IOCClT2yzvoKT9d3mbSdpJmk6HWk+5Lfwza9gmmbUCSMCIXRKSD5HnQ6jebInyoanQi56MVnI2oM iHMjKA6r96nPsstWxs247KCatE26nfiiom23UoGCKD877Kv89VN/04cCqCfyS993Csy9UUQpoHVW vLCaWSYWomWvO8UX2aCsmwK5OrkBdD7DCC8WHYWQsIuYYZa3wVQK2VlEoR+a3KWGLhIos6iKosjG qmE4EV/RA0Hg5Ryu19etchAtyeqFF/gxIkL+Tfc1rT0G6WNeCwfZ+EU4EEfQjFWRFBJfTtKFz638 Yu9itb9lzIq/9Lr4fReGaGeMbgrns5cXTkWUiszs+tYArDX4dOI2w/PLvkpvwsuRXi2XTDMImxAD vjW4DEodhrHr96zvoEGGrjhc/E0hc8CaSaHruQBx/bRQxwX1LbdJHaQTOmssOGYSOt/ZQ4NXA/eO BiihNq+qEXrnMCGVdNpVQ5F+91f+7J2kVL4qyZ4sIc+grcH5vcljS6GCQmhITGD0kiOkV0UUw30S XmZNtJp2xxAKisfM294nzuksHMFoVD9p9zgaHAPkQD77Oc5Nvw7+C5Sjr7uNKzpWbOclmmYOSN6a fFHKTxdpsqe/ZuhFccpOZojYW/UY/RTORHGXbsHBkZQqU3Uz/kjDLWVnkmF27KhrY1d286JJrSXn qh6NcmGMANnE+dnG0BW1ZVRGImU0uplZmUa1P1JljoPloz0qGJA5y2xUfc+U4U/pcSXTf7Mtf4O7 wnKOyeM2cPJvH1chxOq6ICcMMG0PjVnADOdDW+87SRcJr5K2MoRMffiTnghXLRolMeEpIq6GjHgA vcj5Kb5VCnmCdrGMmNwUICuwTMe+H26OHsKUB5bIPU3ynlG5ppH/QgwztS4j3KMg== From: To: Cc: , , , , References: <9c307f1e-aa95-08e6-3a01-825caba19a30@gmail.com> In-Reply-To: <9c307f1e-aa95-08e6-3a01-825caba19a30@gmail.com> Subject: Re: [PATCH v2 2/2] staging: r8188eu: check the return of kzalloc() Date: Thu, 7 Apr 2022 10:03:49 +0800 X-OQ-MSGID: <006d01d84a23$ba562c30$2f028490$@foxmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQHFCzdkIZn1ahtT3bex/Ulo9ihwXQEIO4NAAgMPs9ys8c3LUA== Content-Language: zh-cn X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, HELO_DYNAMIC_IPADDR,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 On Thursday, April 7, 2022 3:22 AM +0800, paskripkin@gmail.com wrote: > > -void rtw_alloc_hwxmits(struct adapter *padapter) > > +s32 rtw_alloc_hwxmits(struct adapter *padapter) > > { > > What about plain 'int'? I know that s32 is typedef for 'int', but 'int' > looks more natural > I agree with you. Since the type of `_rtw_init_xmit_priv` is `s32`, I directly changed the type of `rtw_alloc_hwxmits` to `s32` (they are neighbors in rtw_xmit.h). In fact, there are many places where `s32` appears together with `int` in related files, so maybe we can leave it as a future work to make all of them a unified form. Regards, Xiaoke Wang