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 ACC6AA034E; Wed, 9 Feb 2022 16:32:51 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7F79241144; Wed, 9 Feb 2022 16:32:51 +0100 (CET) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id D2B4C41143 for ; Wed, 9 Feb 2022 16:32:49 +0100 (CET) Received: by mail-pl1-f182.google.com with SMTP id c3so2516209pls.5 for ; Wed, 09 Feb 2022 07:32:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NGwtYumKbvNe8k+0bRzxsbvn379j4tYtMAW+kJ/78sU=; b=xHqPOcaLBSTRFduYvmOCVZS+5G7SjyacIUxQFqdzQOAst8gqqlkCTogYY3EWwBJFCU fpWtHORvysElXmuGfuybNLVelkv9lt9oQ/XKHHLgF/IaFSHKDMVTjUTOtTeBCbWoiAXU Iy5R7gowWMm+QhWhe0xxE/3aAIZ0QuYyiExAQAQamCju/E3cOFFoLhQAg9uaowgtu4rD z3HcseHNWg2/r60OVSPWWyr0w3krF1SGX08BpKTHKM8NPsnkf0eFexAZA6UwOqBnYuJ0 8RMN7UH0Tr8wAONSdOBh2VGjWIrB0uQHBKrbz+yLl42tVMr8Zp4QNhyHijoAXik1RvqM 2y6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NGwtYumKbvNe8k+0bRzxsbvn379j4tYtMAW+kJ/78sU=; b=geFiudAyBdb2I2PAfFV5+i6vlWpFUHfymKIqnLfFXUyTtMALOqsHwSlwswArkjdDZM VomwankK23yrVzSCX/BQIuvI3dAy7vTOQynaWJdKXWn9ShrlgUcYsrFiLVCT6KjXSdVr hdHOHVODImEd8r2GdhQ5P/KYCwER9ratF5HvsbkwjHhZjvkBLSlUKBYpCuOl0IvVSJPn Zldid9mLbIgKVVV9EdwVYJzTkrX8fImdoqunL5OOKHXJEyVA48P26JtJB0KNPrY0d6fc BGuqeuNihVTyCctIpfuOo5k58ucMfj7eouncJ3ve4y9weuIOtRJkR2InJQ64AQxsn5PC dpNQ== X-Gm-Message-State: AOAM531udTFgMBYK1uHPs4tn+wVST40gPQaOO87B/O2ry4d5GQPKgtwC 2/O8SgU2HcF31iGVJjviHf/1lA== X-Google-Smtp-Source: ABdhPJyaejBu0V2VKSwNlJI5TCC9MVwER2fFO76z0deCpZvjHkkD5uFwWrtWa5diZ3bDvySt4VnhxA== X-Received: by 2002:a17:902:680f:: with SMTP id h15mr2704611plk.17.1644420769001; Wed, 09 Feb 2022 07:32:49 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id il8sm6906438pjb.0.2022.02.09.07.32.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 07:32:48 -0800 (PST) Date: Wed, 9 Feb 2022 07:32:46 -0800 From: Stephen Hemminger To: Yunjian Wang Cc: , , , , , , Subject: Re: [dpdk-dev] [PATCH] ethdev: remove unnecessary NULL check Message-ID: <20220209073246.1dae32be@hermes.local> In-Reply-To: <86e8c92e29214673983f4387dfc6a24338eae714.1644409051.git.wangyunjian@huawei.com> References: <86e8c92e29214673983f4387dfc6a24338eae714.1644409051.git.wangyunjian@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Wed, 9 Feb 2022 20:24:10 +0800 Yunjian Wang wrote: > This NULL check is unnecessary, 'eth_dev' is never NULL. > > Fixes: 58b43c1ddfd1 ("ethdev: add telemetry endpoint for device info") > Cc: stable@dpdk.org > > Signed-off-by: Yunjian Wang Acked-by: Stephen Hemminger