From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 019F5A0547 for ; Fri, 14 Feb 2020 17:39:49 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E06441DB9; Fri, 14 Feb 2020 17:39:48 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id 63D4FF72 for ; Fri, 14 Feb 2020 17:39:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581698385; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KRS2wPiaO8aDtYFmu1tZwXK+/xSh64fgSIiVPludz84=; b=HL7INZt15K5ncyoOVTRR4E3kNG8q0L7ALQ1c+zVdHU4XWh293WoBcJkxERuXO/UYvYxMJ6 0GH2n/psFAfRFK9LrOT+rm36lDPSoy3dE1bRxX24Uugh5QDIgZTaB6XwN/zYD9AQY4Seix Lkim3Don3lrLxBPn63R1NKZZwfj6wsg= Received: from mail-ua1-f71.google.com (mail-ua1-f71.google.com [209.85.222.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-363-3cEVc5ARMUWupvsnwplKSw-1; Fri, 14 Feb 2020 11:39:44 -0500 Received: by mail-ua1-f71.google.com with SMTP id p15so2393918uao.9 for ; Fri, 14 Feb 2020 08:39:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KRS2wPiaO8aDtYFmu1tZwXK+/xSh64fgSIiVPludz84=; b=IGPj+xcIwbjLfwa/eF7v6OfJU1FxfGeu9bcJfXJ4QhnSrK0r78NOwDsPPWV39BxoK4 pbxIy3u3+OA2J6alBFTKpyVHVkGfHI+C0+qOIsNTQM+Zxbk16jwKFmMDO/auGaiZVrUa dTm3/ImNdvz5itwKqvf4nMS0kwWlSNBpc8ClUtbj5gK6F5pR+4rtssFgHChxqeObmend zAuFOIpBDkrK5g7MNStyGoNtVYoUq/89w6Ztq6kX7+QElE3bhHuX+0iYnT0tOqtXXRHW 9MgrDSkIzDkWLXgX7bPj7NsodEhvg3O5ztjvByyX/RmjBUkaQlLB6mJ6MQJIkqsXVZlV XxnQ== X-Gm-Message-State: APjAAAUqP2ieM9EYJoxmraVVoMpMmCR7jtmpSTdjawwuGjfIhQJrhKOP vrtt0X+Hd2obHaTRew1SJogCs7AuW7/6z2R7rhd706FzAIcYVI/+xe6pRVFb/+WaMolkcrZYpta 2bL1xpOLJdoaGBV4Ukr+2Cog= X-Received: by 2002:a67:f1ca:: with SMTP id v10mr1982029vsm.180.1581698383574; Fri, 14 Feb 2020 08:39:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxl7ueRfOsGXV8VqBx1+v13OoZ15NvpQGzQi8h5vVRZs9A9NgcmnRfA4XTG68UBzfrijJZ9AH/LGc5oZpHjxjU= X-Received: by 2002:a67:f1ca:: with SMTP id v10mr1982015vsm.180.1581698383346; Fri, 14 Feb 2020 08:39:43 -0800 (PST) MIME-Version: 1.0 References: <20191202091517.17461-1-ciara.power@intel.com> <20200214161725.36104-1-ciara.power@intel.com> In-Reply-To: <20200214161725.36104-1-ciara.power@intel.com> From: David Marchand Date: Fri, 14 Feb 2020 17:39:32 +0100 Message-ID: To: Ciara Power Cc: Olivier Matz , Andrew Rybchenko , dev , Bruce Richardson , dpdk stable X-MC-Unique: 3cEVc5ARMUWupvsnwplKSw-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v2] lib: fix unnecessary double negation X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "stable" On Fri, Feb 14, 2020 at 5:28 PM Ciara Power wrote: > > An equality expression already returns either 0 or 1. > There is no need to use double negation for these cases. > > Fixes: ea672a8b1655 ("mbuf: remove the rte_pktmbuf structure") > Fixes: a0fd91cefcc0 ("mempool: rename functions with confusing names") > Cc: stable@dpdk.org > > Signed-off-by: Ciara Power > Acked-by: Olivier Matz > Reviewed-by: Ferruh Yigit Applied, thanks. -- David Marchand