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 6CE8EA04A5 for ; Wed, 9 Feb 2022 16:32:52 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5DB5E426D7; Wed, 9 Feb 2022 16:32:52 +0100 (CET) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mails.dpdk.org (Postfix) with ESMTP id 0ACC441143 for ; Wed, 9 Feb 2022 16:32:49 +0100 (CET) Received: by mail-pj1-f46.google.com with SMTP id v13-20020a17090ac90d00b001b87bc106bdso5437481pjt.4 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=meZbOMdS9clUYUr+278bajO6yHqBudtnItL1OLUfyqqhlxWk0+RXdrYrwoRNdxz1rA QpdQNs6bhfpB2gE04WwP8UEfw1icIkmFsgHfECsjMC4VR6qHnvXoXKBb7kjd/fCrxFc3 l/JAP0exEaoZyBbb1d644tJ5mRV3OCv7ZJCJ6NcHPmgt/zHhX70uvrelxKyjsHzlJ8/j /p8UHpFDBpQkY0PQlkJ/86ij/bOpwnpPwD3esNsfOG+xIueleA10RT26O8f/5VayygRl KON2CEFOS5nhH7xleQGMOjgik9uXoDKcPas+C2srmqxk75VyRjNJrIkZEWIHPGwilYnS mC1A== X-Gm-Message-State: AOAM532DMMX+Bl1zNshmnMl6Li3U+Qthkg0p+lNHvLz0wFvdDVSIp4Ef 9tCyz2ynCkoqD/Tj0fEJJTfN4g== 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: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-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