Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp53127pxh; Thu, 7 Apr 2022 13:44:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2jp8Ga/0QoLbDXxIDIWTnKHFnr2kLmmZJyfzYI/DAlUEKUwtJYj0JSCE9QMvHWw03P2+D X-Received: by 2002:a17:90b:3504:b0:1c6:8569:c28d with SMTP id ls4-20020a17090b350400b001c68569c28dmr17649179pjb.92.1649364283965; Thu, 07 Apr 2022 13:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649364283; cv=none; d=google.com; s=arc-20160816; b=z69Nn9p5ClSf7xXQ+k1ynBLzmVROvH47y3AkgXCzXDyP52+aQ161ru0FpvLsZ+xhsq gN2tiuegU2b/D7XxwAcUvD51jBQQSykU1Va8lQ4zOtvCM+WHNRHdBK3wBPfovygner+x o4EBBoj5v+A2QeUNz2FrPbA8AIPO0CkwGFEwZeF6mEew/ESo2hvqgoEsSYD0KysrWd3H ezYvxL2XCsJ8lib11k1gRHqhf28thSGiV2LYwTxcOFJEwfFZTHOJQ3fSXH+fUaYw8X30 rM4KBP1W4UsjrjE7RU9RuY0699WNYXL95SpLdOvTMPzLXijtm/k5tB88g2foOuA6EKOu +GxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FjqNfE3yjlfITlvy1fVfpSU7IFgTOeqx/Jan2/A8yDg=; b=SscY+YmYIZZ6uFFZtjqpQylg2Ag9ui9oNdz7gQYst7pZ1z9Mcs5q5aJMHeAtv1aJlA zENRV90B0wrYTu7Ny4eZzmpeTHcZ53AoWOO2jWAc0iCVlXAq2N0IBUY45BZREfn0OIjn hLaFPnBHB8QDGN1doEbWC9yj3y/RaXCKAZgtm+2pkjR/HkvjALVSDIJoFgyoCuL2/W7K IZVumHyTqnGVRPJpDgf6ILB4yzyuLkKvzuNtECmsD/fW7JBea4Vxioz0Nof+RSUGnaJX appvcR93GT2k/MLdrHtVfkU3EjeYqL4OylwFBUTWLjwMR2DyMOY6OkcunWZz7FUqBN2c VsLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Rv4C6fFh; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y184-20020a638ac1000000b0039cf338ee80si546663pgd.697.2022.04.07.13.44.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:44:43 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Rv4C6fFh; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8E5DB3D31E0; Thu, 7 Apr 2022 12:53:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346633AbiDGRxR (ORCPT + 99 others); Thu, 7 Apr 2022 13:53:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346623AbiDGRxL (ORCPT ); Thu, 7 Apr 2022 13:53:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C95C22EBE4 for ; Thu, 7 Apr 2022 10:51:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 98EE661976 for ; Thu, 7 Apr 2022 17:51:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3832C385A4; Thu, 7 Apr 2022 17:51:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649353863; bh=iBZxPWDIqKLn9hWgPpT2DzF41eYn3xaK1WuVBDT9kLA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Rv4C6fFhFdNrF+mn6KNyC1rHVUJ42ECR/3tD6579FzZhMQxJk0hqN7t29aISztqOo s5gKFaflSIeBKeuUzilYcTpLB/2wlj97czZCH4fc9OfaucwI7Zx914WCBD0Qvp5HKR LOKRpyMrm9ibvvFZnylA9crvK9SPH8B83cdY/02E= Date: Thu, 7 Apr 2022 19:51:00 +0200 From: Greg KH To: xkernel.wang@foxmail.com Cc: paskripkin@gmail.com, Larry.Finger@lwfinger.net, phil@philpotter.co.uk, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] staging: r8188eu: check the return of kzalloc() Message-ID: References: <9c307f1e-aa95-08e6-3a01-825caba19a30@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,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 Thu, Apr 07, 2022 at 10:03:49AM +0800, xkernel.wang@foxmail.com wrote: > 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. No, get this one right to start with. thanks, greg k-h