From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 151C2C54EE9 for ; Thu, 8 Sep 2022 20:05:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229491AbiIHUFG (ORCPT ); Thu, 8 Sep 2022 16:05:06 -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 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!