From patchwork Wed Nov 23 12:53:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ammar Faizi X-Patchwork-Id: 13053637 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 8EF37C433FE for ; Wed, 23 Nov 2022 13:12:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235557AbiKWNMV (ORCPT ); Wed, 23 Nov 2022 08:12:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238722AbiKWNL5 (ORCPT ); Wed, 23 Nov 2022 08:11:57 -0500 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CB3FF1DA5 for ; Wed, 23 Nov 2022 04:54:13 -0800 (PST) Received: from localhost.localdomain (unknown [182.253.183.240]) by gnuweeb.org (Postfix) with ESMTPSA id BA70681696; Wed, 23 Nov 2022 12:53:50 +0000 (UTC) X-GW-Data: lPqxHiMPbJw1wb7CM9QUryAGzr0yq5atzVDdxTR0iA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1669208035; bh=HIlgi8T5KiU/QHcc6+YrhbuQ1ePlcPuPGCHJF086bv4=; h=From:To:Cc:Subject:Date:From; b=NfrQ4tdyyTh4uHeA2nA+OUKt3ojEtim8QoBWf5eGbuERnLdPGnxF01wa5cgX/olJS 3rQcmwGSvWmSul8J50uBMFB/ofoFbTg7ACaNDzBEel1hGneUzvzIjSXLA7vSYmRwAr iwBSMAsK0ixGPN3WqCLVTnvYwCXMk4wRuAkbb7xFh2sGQoOS5/62mXQX06gjpK88+X F/EFjxHTg3hinLpo7BQGkzbj6ePhkmHs+y4RClbW7b1myznwBuAMtMKpAYLaLXAnfS 0C77gUH0aNNNywNrE5m0wxQD8R3Sd76W1xZnrwTdywhLNEdw5dnwfRiCdFedzX+FIp ujLEU6EoJTKZw== From: Ammar Faizi To: Jens Axboe Cc: Pavel Begunkov , io-uring Mailing List , GNU/Weeb Mailing List , Muhammad Rizki , Alviro Iskandar Setiawan , Gilang Fachrezy , kernel@vnlx.org, Ammar Faizi Subject: [PATCH liburing v1 0/5] Remove useless brances in register functions Date: Wed, 23 Nov 2022 19:53:12 +0700 Message-Id: <20221123124922.3612798-1-ammar.faizi@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org From: Ammar Faizi Hi Jens, This series removes useless branches in register functions: - io_uring_register_eventfd() - io_uring_unregister_eventfd() - io_uring_register_eventfd_async() - io_uring_register_buffers() - io_uring_unregister_buffers() - io_uring_unregister_files() - io_uring_register_probe() - io_uring_register_restrictions() There are 5 patches in this series. Signed-off-by: Ammar Faizi --- Ammar Faizi (5): register: Remove useless branches in {un,}register eventfd register: Remove useless branches in {un,}register buffers register: Remove useless branch in unregister files register: Remove useless branch in register probe register: Remove useless branch in register restrictions src/register.c | 60 +++++++++++++++----------------------------------- 1 file changed, 18 insertions(+), 42 deletions(-) base-commit: 8fc22e3b3348c0a6384ec926e0b19b6707622e58