Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1784027rdf; Sun, 5 Nov 2023 14:22:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGhQpVhg8Yg/AGdYkjOqOhPZV7AXYr3yqWtFJRffdobktHknT5i53966bYJoTTpQ3Xkv1f X-Received: by 2002:a05:6870:c0cc:b0:1e9:af65:5612 with SMTP id e12-20020a056870c0cc00b001e9af655612mr34996855oad.42.1699222962629; Sun, 05 Nov 2023 14:22:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699222962; cv=none; d=google.com; s=arc-20160816; b=TuGMTwukag9tZKMemwnae1IvUlTaNdItXuJpwRp3A+ATDt+DZkK8liB4s2J5zYuOyw +w7tpkWVwB7Bx6fH2PIoFFM6c6jOSGHVZmTl9T1SVI72i9u0hhqjXHbSkNG+FYwnxqt7 pC2pONxBf+sG7eKGmotYCjuLWg81zhGNy/9QXZugIrfdozCQUKUsv95njvyeepKxFzqL zY/7Ytw5jnLmN4Z72AIgXYD6axycr/BJD6Ii06doRrCaUviqsiXTWshCLoeYN0wjW7qh G4ZPxGdmdrAE8RpkLevglMMiQjeEniCDYgQbLT1e657GRFJVLSNNUV8wvOtCX+D//IjG 7/ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=Fa7VoOmtHE16gBTWR/+bdTB9GnKF9MNv8UM/ZbtRuKs=; fh=TYKZJtwuVFpnjDBSiywgrw68CnEntq0Nqb4QpcJ9TdU=; b=NBAYN1634j/jnagMNoiGuy0jhTekuXpJldo5jt8Ag3C7JjXHmnDlHBUwK2ysh4n2AY xAdz5I0Bo31pldwIDM1XyhsLTVm+f3qkHXlajFbbPTiHHH9MJVw+NAECER2TTN5t2TBF l557Kpc7wgtuiGmjxe5Cv3iUSBByrLtRqS8YvpAAYeXhPUlx8OAV94QqwlRrVt6Q2aZK OSQEiLaMDY97fO1xi80JuAx2mBNyJMIEJ5i1bT8j8kGyWAvPCFq/BkCg+Wzpd2awdM8F X31c+7oWJnCE8bYkmCEVzV6TAXkvKj6Y5GsLjk/NsxmpZJxLRIcChXzRVuQKmQ3CrxWz Eydw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dX27NH2Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id 197-20020a6300ce000000b00577f7b6e7b4si6871252pga.624.2023.11.05.14.22.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 14:22:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dX27NH2Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id E312680A32E4; Sun, 5 Nov 2023 14:22:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229652AbjKEWWb (ORCPT + 99 others); Sun, 5 Nov 2023 17:22:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjKEWWa (ORCPT ); Sun, 5 Nov 2023 17:22:30 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4363ACF for ; Sun, 5 Nov 2023 14:22:28 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4084e49a5e5so34329145e9.3 for ; Sun, 05 Nov 2023 14:22:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699222946; x=1699827746; darn=vger.kernel.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Fa7VoOmtHE16gBTWR/+bdTB9GnKF9MNv8UM/ZbtRuKs=; b=dX27NH2QOGBccCxu8ShUtGVYAnOwCKukrFjwaHcyGlaJhvD0591L9OFEQoIoQdXuzy cpjCyyQEAyhF2S/ghrd62+ucToUUPoOL4h4Os+DtCnzceOfylWV0/dJAsX0tTWb4TOBv ZRZSQd4aM00/u4WcgHDep5gAL0Qduq2ZsUZDSySqr8JqNCnwYsliNoCBIAfASceV0/Na Hw8PQKN9jRoMH5Zky24Uf4vZSjo/GBSRMVfoZf2OC3Ge/V3XNIGWCl+Y3n+/NxJUyRjr nNaYNWBF1ctuL3xt4zjWBAkzODrhB8Q9Lnfsxt6Awwo9tFfkJDpxAkKybhGicEKQ2jQc KvPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699222946; x=1699827746; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Fa7VoOmtHE16gBTWR/+bdTB9GnKF9MNv8UM/ZbtRuKs=; b=vNk1jx+LurvfESoiaCT3dV20RMZg3zfvFateyEyiRhYuEsy/8zIbAlsBaGBLfgxvqN TxWcBDvYZC+gn+ryqU7XMwvH8qsMAEyt9MHHBY25QoUgsXUbsGVLQOOvb0o2607C94dV YMbAlIyblKnmKHR0lfDMeSblw5UG5UJhqT+gX+V8YoXqv+utdYzS3d7jMLwcTnOeMZla jyyrZj3sBYMmQQl85+1yVCHBdU+UfuS7DryoRSwnQlwsIT3yWRp+d+Itzj+SW2LIF+dE ljeENA7Ix7XY1lNS2jn+x122LMLbo7ciSALiFADHZatW9/Q42UKA3mxUokb6Syfcr/ZM Tk0w== X-Gm-Message-State: AOJu0YyFwyhaTI+lDX8TRqTqLt7fzsTw9FJm2pOyTO6zjFZ/f2ty/ume qrz1o8wxxc8p8IVJuht1ZEZAuGDHPOJIxKiS22SOyEcmNjO+rw== X-Received: by 2002:a5d:6489:0:b0:32f:94a5:5726 with SMTP id o9-20020a5d6489000000b0032f94a55726mr15280928wri.32.1699222945996; Sun, 05 Nov 2023 14:22:25 -0800 (PST) MIME-Version: 1.0 From: Joey Pabalinas Date: Sun, 5 Nov 2023 12:21:49 -1000 Message-ID: Subject: [PATCH] fs: dlm: Remove impossible to hit if statement To: Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sun, 05 Nov 2023 14:22:40 -0800 (PST) Signed-off-by: Joey Pabalinas --- fs/dlm/member.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/fs/dlm/member.c b/fs/dlm/member.c index be7909ead71b427aa5..bf7085f21a708ab860 100644 --- a/fs/dlm/member.c +++ b/fs/dlm/member.c @@ -294,19 +294,14 @@ static void add_ordered_member(struct dlm_ls *ls, struct dlm_member *new) memb = list_entry(tmp, struct dlm_member, list); if (new->nodeid < memb->nodeid) break; } - if (!memb) - list_add_tail(newlist, head); - else { - /* FIXME: can use list macro here */ - newlist->prev = tmp->prev; - newlist->next = tmp; - tmp->prev->next = newlist; - tmp->prev = newlist; - } + newlist->prev = tmp->prev; + newlist->next = tmp; + tmp->prev->next = newlist; + tmp->prev = newlist; } static int add_remote_member(int nodeid) { int error; base-commit: 1c41041124bd14dd6610da256a3da4e5b74ce6b1 -- Cheers, Joey Pabalinas