Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp66633rwe; Tue, 30 Aug 2022 21:14:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Lu8oMUhUCxqVYLU6QDFmUtTaj1pORSUt5Zh6nsWYrAWr2x0OSdn97EwN7DphMEwmntFkF X-Received: by 2002:a17:902:ab98:b0:171:2cbc:3d17 with SMTP id f24-20020a170902ab9800b001712cbc3d17mr24279295plr.143.1661919292584; Tue, 30 Aug 2022 21:14:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661919292; cv=none; d=google.com; s=arc-20160816; b=T0uzyVWDtECyyHamctZHQNNQljiz0GbCXB8xI5Z86MX8YcAL0fawovHRDufetVIxaS QvbrNJBBrTZNm+pDhQHShjkMiZZqhrfsj3PEeJt9VTGh7wsQTWmvDHCpHvd08y6Ogajb s52wJ/xwARkEpYNyhqzMIY6slwJqpXqDOQ23LwjvIYAyxlxWpmAzvjyzAqyg5Zy9ycgT O45u7P149XEDo5ya8obZ9mXxq0pUaoRg5/uq7RIRXx7AGrtL244ApQG6SwS4xh5RvEzp RoIP0NV6Ig0DOSDta0fVBxHZg8kAs7vA9yjY7ovRl4CWCfqWqnwm9BiAMcijVV5NFzFM eOcg== 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=xja15Tj3PQBuprLDGFhRCas9TaWllXldsYfN9F/RcZo=; b=Te4hOSkxBhqeCes+sBEmKXi/adP5GMJ1l02hDwB55KrzYj7TSxF26+4weKVOQPKGoU O11vQgJCvJT6F2srTQJH3bAmtLmnaOdiq+jq6/W+AnGzn/itI8RQXqg3oD1CkC5P+HN3 lDrcsQw6IObFn9pz1xK/PjTaObCWu7pPHSU4mAZuBPJIuZbxZE4gByVLMJ6qBFjAMyh8 zpOoTF8oSbwtqRZhrMjTV/1VkoFnYz2L0qmjQZmnmFg9PZ2qZTU1Al93bnfbfJP9C8gE +ZfyGX9ItIBfcnFnEDVCVu1SRKyfImGNQ9lPru5MALcHkyB5rpQ/WCBuxhstG7EZXAjJ 2Daw== 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 oj13-20020a17090b4d8d00b001fdf08df84esi878471pjb.182.2022.08.30.21.14.41; Tue, 30 Aug 2022 21:14:52 -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 S230152AbiHaEKh (ORCPT + 99 others); Wed, 31 Aug 2022 00:10:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231801AbiHaEKc (ORCPT ); Wed, 31 Aug 2022 00:10:32 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C53606E2E8; Tue, 30 Aug 2022 21:10:24 -0700 (PDT) Received: from canpemm500006.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MHVyk60H4zHnZX; Wed, 31 Aug 2022 12:08:14 +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; Wed, 31 Aug 2022 12:10:01 +0800 From: Ziyang Xuan To: , , , , , CC: Subject: [PATCH next-next 0/2] net: vlan: two small refactors to make code more concise Date: Wed, 31 Aug 2022 12:09:55 +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: dggems706-chm.china.huawei.com (10.3.19.183) 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 Give two small refactors to make code more concise. Ziyang Xuan (2): net: vlan: remove unnecessary err variable in vlan_init_net() net: vlan: reduce indentation level in __vlan_find_dev_deep_rcu() net/8021q/vlan.c | 5 +---- net/8021q/vlan_core.c | 22 +++++++++------------- 2 files changed, 10 insertions(+), 17 deletions(-) -- 2.25.1