From nobody Sun Apr 12 04:36:00 2026 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 5B135C00144 for ; Mon, 1 Aug 2022 04:30:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239212AbiHAEaF (ORCPT ); Mon, 1 Aug 2022 00:30:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238311AbiHAE3s (ORCPT ); Mon, 1 Aug 2022 00:29:48 -0400 Received: from mail-pl1-x64a.google.com (mail-pl1-x64a.google.com [IPv6:2607:f8b0:4864:20::64a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99D65140AE for ; Sun, 31 Jul 2022 21:29:25 -0700 (PDT) Received: by mail-pl1-x64a.google.com with SMTP id o12-20020a170902d4cc00b0016e81c62cc8so4018638plg.13 for ; Sun, 31 Jul 2022 21:29:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=1bQbst9icU8PzrBH3x9FY5YwDFo9gdkmYY4v3XzOPoA=; b=nYIVllHuj+lpycvPE1ZOmapJ6S2uOuZKeWAnIWJ6qQAOjzjH9xA8vufIqCpd7WmsYW aqr5H5NaGqbORFkq8pjFnX1t/6Lrf61FQWVYB5hC9xmIbTxLGVgPcGrTBVBGM5b4KdV9 LD4sEp8DHaroGU/12I8AkN2LL/GmRIl+TpZYoTtU5OuloiTMdhJO4qCSfUUrQYsmUbJG 0Mw+ysIvTcstsH1ObeEVLdT99vp+Gq4JNAzg34iML8fQg0BqRR8DrlCj+ahOwoVXtMnG VPmwdWQUBts65He+v+CjFIX9Vy3ted1U5e+gYH9/j2sJ/EPV+UpgFi49XSpCbX6epsSK DXOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=1bQbst9icU8PzrBH3x9FY5YwDFo9gdkmYY4v3XzOPoA=; b=tY8EUGmYCh/owTwbRcHaGklXKDWZZCDIsX8UO5SUCE2n5GwX+/yrE2NsFCw02cuuFm vPWpO3NHBQ4LPlB5hYUt1cvCYQ5wIOLTfvez2LJT/4KTdJ5Gamk7ArLm17nrx2+EpHTG PFVAlzshy45awtJ/bhUhNWn+YD8ffuf3y0BvaJiYTjQOSsvsyGWvy40bzMXXzytpzSQ8 mz3KzSVdpJNXEdYBCPhOu+8F9Hh/rpT8bpy8QUatFoLYjvQyJQeQsGZZ/gpsgnboAq5f yg1xNvB3gHrKRhMwbmSJbYriEBcSPIGp6ole5JBB8qyVfZbG9VrmyfpAV3dRJ5oBbWl2 A+QQ== X-Gm-Message-State: ACgBeo0S32IaN4HvxGeynsfu4SUiNR2oM7qtfDIF0JNPOuo0V4ZfU4fR VTiJmptBmLlyNXuvHLS6L9VNGxABVrb5 X-Google-Smtp-Source: AA6agR6/PQNxetyTw87QGRgI8/orhOO6IHB2AfZi0+8Sb9nacfASDTQusW/A7OtYG6QbLMmlsxbIIZ5mnXRY X-Received: from ezekiel.c.googlers.com ([fda3:e722:ac3:cc00:4f:4b78:c0a8:108e]) (user=shraash job=sendgmr) by 2002:a17:90a:df03:b0:1f3:396c:dd94 with SMTP id gp3-20020a17090adf0300b001f3396cdd94mr626688pjb.1.1659328164765; Sun, 31 Jul 2022 21:29:24 -0700 (PDT) Date: Mon, 1 Aug 2022 09:59:18 +0530 Message-Id: <20220801042918.292541-1-shraash@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.37.1.455.g008518b4e5-goog Subject: [PATCH] Bluetooth: Replace IS_ERR_OR_NULL with IS_ERR From: Aashish Sharma To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , groeck@chromium.org, mfaltesek@google.com Cc: linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Aashish Sharma Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Since bt_skb_sendmsg never returns NULL, replace IS_ERR_OR_NULL with IS_ERR. Signed-off-by: Aashish Sharma Reviewed-by: Guenter Roeck --- include/net/bluetooth/bluetooth.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/blue= tooth.h index 6b48d9e2aab9..a8b52175af05 100644 --- a/include/net/bluetooth/bluetooth.h +++ b/include/net/bluetooth/bluetooth.h @@ -494,7 +494,7 @@ static inline struct sk_buff *bt_skb_sendmmsg(struct so= ck *sk, struct sk_buff *skb, **frag; =20 skb =3D bt_skb_sendmsg(sk, msg, len, mtu, headroom, tailroom); - if (IS_ERR_OR_NULL(skb)) + if (IS_ERR(skb)) return skb; =20 len -=3D skb->len; --=20 2.37.1.455.g008518b4e5-goog