Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1121041rwe; Sat, 27 Aug 2022 00:53:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR5XjbVH0kfOnKHLV1Y4cmiYWWuIh7sRdl0ky0EXst9w1yx0wqNXzRycmUASr8mFVileOBxf X-Received: by 2002:a17:902:d48a:b0:16f:c31:7005 with SMTP id c10-20020a170902d48a00b0016f0c317005mr7150981plg.173.1661586831322; Sat, 27 Aug 2022 00:53:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661586831; cv=none; d=google.com; s=arc-20160816; b=gLqamviDJcwFHdPlXCw2bi9kDUqrX4PUczOzwwo/4YuKXzzQ6e5vyf+GWdBX8eFhuy xwRdoFrPI1VXy6/Uyoz0i8D7L51Mze9Qgf3SvNxYDaeT6x/C3jppGxPteXai7v87Uxyt XE64I+IXcXQlEetSFoDFRe5Sw/HyLqJpptn7zCDjKvBR5EWEhQZ0OSoR67iMgQQnpIK7 vKjpl1kt8K4JVguESCzzu0X8m++u1YmjqO6Jw4QRPOTRDxX9s+AY/wPJHAcMFXOd9j7D AdGRqDH3F26S8AcerUG2GmZhx/4Q4H7uGORjCZjKGbk3W/lm9mA4tKCOJ5QFbLsBom6c 5Ykg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=TaYM5uhpdJQPhHChjQUBgnIbMpi5anZFtWkE87oorY8=; b=M/OFM7A2wQOUUQaiDj6b4WbCSHuhYQLLMu1M3Ff10pMzKA2TsOVeLHZ7B2YMdJvoOY FrD5JpDXMHJsN30mvkrPpB6tDc+U2ZO+EkGJH2xuIdRIH9n8DAibBCUcqCk9JJUPQOXj jwlNKmIvmYW+Iiid3261r6XKIipsXzy8mPLiKyBv01hWgVkTbFfESXY/j5bsfuvWR6EP aFzSGxixgXykE3ns8+EVqGiUP38cXPatKhbC99RABw/u3SoVVRiZ8ugULP01FrMdJAQo NNvtg24axu0hQTIaE1uWj9HQFfrZFnwSrK0VfG7AnS6LlBrgsNQ1m+rJh3fSdpYD7kxJ hAEQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v4-20020a170902b7c400b00172ad52197esi3374437plz.329.2022.08.27.00.53.36; Sat, 27 Aug 2022 00:53:51 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345359AbiH0HUk (ORCPT + 99 others); Sat, 27 Aug 2022 03:20:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232926AbiH0HUX (ORCPT ); Sat, 27 Aug 2022 03:20:23 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7E8E7C51D; Sat, 27 Aug 2022 00:20:21 -0700 (PDT) Received: from canpemm500006.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MF7NC5F9SzGppd; Sat, 27 Aug 2022 15:18:35 +0800 (CST) Received: from ubuntu-82.huawei.com (10.175.104.82) by canpemm500006.china.huawei.com (7.192.105.130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 27 Aug 2022 15:20:18 +0800 From: Ziyang Xuan To: , , , CC: , , , , Subject: [PATCH net-next 0/2] can: raw: random optimizations Date: Sat, 27 Aug 2022 15:20:09 +0800 Message-ID: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.104.82] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500006.china.huawei.com (7.192.105.130) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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 Do some small optimizations for can_raw. Ziyang Xuan (2): can: raw: process optimization in raw_init() can: raw: use guard clause to optimize nesting in raw_rcv() net/can/raw.c | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) -- 2.25.1