Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1106789rwn; Thu, 8 Sep 2022 13:35:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR5xp8BSbTmeYBNl2XtBDU+qaHiQwnTGjt5mtmkgeNFalqUUDH50EjqqEvcpkqtXeD8V7qkN X-Received: by 2002:a05:6512:ac2:b0:494:a4e4:4eb6 with SMTP id n2-20020a0565120ac200b00494a4e44eb6mr3571322lfu.451.1662669354959; Thu, 08 Sep 2022 13:35:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662669354; cv=none; d=google.com; s=arc-20160816; b=Dbd087p0FSZP2ujyMUtMQu/RlV91xtkfJbWFPNWK9p2Xq0SFSpGtGiqDgFZu331A51 j4etFjYMP4DncH3OghRxbRVSZ+NdBtD4H/2C6eb5G2DG/uPmaZmsvB5vVsobfYOCLbB1 7fg+xCn9BVNe+F+eWi8Khi7zBqtaLtEBxJNCaKW5rMk2OHZJPYDLTScmvG8Ydx4OYGX/ 7RWkQiO6kYLYtjz3M86hSZ7FGh/9zYh1kish3x+jM4EBXiUeeKoY8m9HDD/Z4G6lSR2E dWkxW/aTqgQPKHzrW6+UbLvKtYkM4XjnEk+9ixqmEtJ6/fK9qTIDxEvjvpku6hdG9f8e QqiA== 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:dkim-signature:date; bh=tCYR+bp1yumL+xeMTJSnVNXEiq4gtT5BoKEGNiTR/BU=; b=lDJCMEUjQ/oxNbbgdf8JvYiecKIGLZqNh6SrL+jhXh8R/Xv9cxERK7R8o6y8k4uhsI CUOW8z5cR60nsNjNfF2KkeuAw7r3mWAp967w+gjwZq7pYMxO3LVJXaAEoI7cxnRBOySY scbxBPXN5tKmU1ElA+4YKXsJlt5jkw8rB7vHWZnzX1+MBxb/PEPwHih1gk+Zeni3foSr +xnVkuK2HEnnmx542hG0v1jlOB1H3zhdzJj+NX4lKW5RIxx+qY0fiK8crbyy5zrZ82Mt 5RZgvuCbkcpBcWKESQJFXsfLLNnCSk01cPav7P7KCK1EcSjE2wZahQBUil7fay+CpgSZ EgPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=UNie+naM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020a05651c10ab00b0026ad16498f4si1962133ljn.456.2022.09.08.13.35.26; Thu, 08 Sep 2022 13:35:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=UNie+naM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229476AbiIHUFE (ORCPT + 99 others); Thu, 8 Sep 2022 16:05:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbiIHUFC (ORCPT ); Thu, 8 Sep 2022 16:05:02 -0400 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B9B63AB29 for ; Thu, 8 Sep 2022 13:05:00 -0700 (PDT) Date: Thu, 8 Sep 2022 13:04:41 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1662667499; 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: in-reply-to:in-reply-to:references:references; bh=tCYR+bp1yumL+xeMTJSnVNXEiq4gtT5BoKEGNiTR/BU=; b=UNie+naMu/8ei3YoYW0dxhjpBhdS85jx2yoN8nLgTaMA4ZZTnSlFwpAIkC9CoFWJ3a1USj BQXZWTQguCdpdDiJQaem4CreJMMJnxqXdY04uPpwT2WQ+aR9wBBumuOfp9k+Dbg69eQEbv RO8uqFupTg9W4M4qwvJeaQhRD7GqzA8= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Jingyu Wang Cc: akpm@linux-foundation.org, ebiederm@xmission.com, hbh25y@gmail.com, legion@kernel.org, longman@redhat.com, songmuchun@bytedance.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ipc: mqueue: remove unnecessary conditionals Message-ID: References: <20220908185452.76590-1-jingyuwang_vip@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220908185452.76590-1-jingyuwang_vip@163.com> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Fri, Sep 09, 2022 at 02:54:52AM +0800, Jingyu Wang wrote: > iput() has already handled null and non-null parameter, so it is no > need to use if(). > > Signed-off-by: Jingyu Wang Acked-by: Roman Gushchin Thanks!