From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2D975A0540 for ; Thu, 7 Jul 2022 11:25:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 267E340A7B; Thu, 7 Jul 2022 11:25:51 +0200 (CEST) Received: from dpdk.org (dpdk.org [92.243.24.197]) by mails.dpdk.org (Postfix) with ESMTP id A8985406B4 for ; Thu, 7 Jul 2022 11:25:49 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 65534) id 99FA1120D82; Thu, 7 Jul 2022 11:25:49 +0200 (CEST) Subject: |WARNING| pw113781 [PATCH] lib: Check for the NULL pointer after calling malloc In-Reply-To: References: To: test-report@dpdk.org From: checkpatch@dpdk.org Cc: 835703180@qq.com Message-Id: <20220707092549.99FA1120D82@dpdk.org> Date: Thu, 7 Jul 2022 11:25:49 +0200 (CEST) X-BeenThere: test-report@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: automatic DPDK test reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: test-report-bounces@dpdk.org Test-Label: checkpatch Test-Status: WARNING http://dpdk.org/patch/113781 _coding style issues_ WARNING:BRACES: braces {} are not necessary for single statement blocks #87: FILE: lib/node/ethdev_ctrl.c:78: + if (elem == NULL) { + return -ENOMEM; + } total: 0 errors, 1 warnings, 9 lines checked