From patchwork Thu Jun 3 04:49:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Ryazanov X-Patchwork-Id: 12296071 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFD19C47082 for ; Thu, 3 Jun 2021 04:51:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A1FD3613D2 for ; Thu, 3 Jun 2021 04:51:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229850AbhFCExF (ORCPT ); Thu, 3 Jun 2021 00:53:05 -0400 Received: from mail-lf1-f50.google.com ([209.85.167.50]:41831 "EHLO mail-lf1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbhFCExF (ORCPT ); Thu, 3 Jun 2021 00:53:05 -0400 Received: by mail-lf1-f50.google.com with SMTP id v8so6839218lft.8; Wed, 02 Jun 2021 21:51:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+nCi9Jm6RS+Yo4xLrj1ulwofTdiOXC2p9T7X0aXtR8w=; b=JwxPuEWg1X84SZu+RUEfDIO6hQm8CuzSaB94KXZmH2Cv64ZRN7m2HhOiqc732T1HBa GwtyQSay42iBwDN4XGMIRjOHWDOhja9/DTnr6omS61C3ZWRhZPisS42HaQVIEWIEiMjS dRFhdJq0BIDwgIjrmNg4xeE9vtwVfMGub23jdPRHr9jEAUJZPiwYEg4WomStCVOEj892 nXPwOc5yr37bkVPKyQ/kCieFfLAXvlYXdhPijWtOgu6cyAS5C57eQ0MFtx3mKtvzfgow mnu7QCy3LYQacFNwVuDkZSnR13OOorIKvl5hWSdYu9iBcBNcYQ2d2kdDBurXRv5eJvrq L2uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+nCi9Jm6RS+Yo4xLrj1ulwofTdiOXC2p9T7X0aXtR8w=; b=e4KHNENbBqGTszEP6fthXYAJ691SqmNzUhMWSIwurtLOOdfU8x5g+IuUtlvSA9jGio HR+C48rswfrrf/qdFokeu1Mhjz7CIbYIfiR3kRk9dxpg/7AGCalgQCBpszYn9M/m2+fc n0vUgGgOwyLuAcTY6n6liQAgWfWCipWRqdhG9tG7SC0UzOmmxjIqeHWMJHVD7oLPZjvi NqcjL+0mfS2Dr/pHIb5T0GB0XsG3gKIv69QdczK8k91r41JbhT4zuiTZwNXCLJYOsIDt yr7TUKWDD69ZNGr/zcuIzG13tP/aMgS/tVCtCeZb+UfSRe3cL7ugHGufYF6dLKW/CrUM UJlg== X-Gm-Message-State: AOAM530B+H36hIPJ8oLHVrJX8hH7rhHTcGlZf0mAhG2Mo/jk+b/62evZ TQBILG06UMwQwYDhWVG+F7w= X-Google-Smtp-Source: ABdhPJxoWm3n+xVxYAPRD2ma8LJYiwycuwtUbkKgwG0whdSfB6s07YFMF0pFxo8lP5tArax5zpgWUw== X-Received: by 2002:a19:c209:: with SMTP id l9mr16177432lfc.277.1622695805129; Wed, 02 Jun 2021 21:50:05 -0700 (PDT) Received: from rsa-laptop.internal.lan ([217.25.229.52]) by smtp.gmail.com with ESMTPSA id z2sm191328lfe.229.2021.06.02.21.50.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jun 2021 21:50:04 -0700 (PDT) From: Sergey Ryazanov To: Johannes Berg , Loic Poulain Cc: M Chetan Kumar , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [RFC 2/6] wwan: fix module initialization Date: Thu, 3 Jun 2021 07:49:50 +0300 Message-Id: <20210603044954.8091-3-ryazanov.s.a@gmail.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210603044954.8091-1-ryazanov.s.a@gmail.com> References: <20210603044954.8091-1-ryazanov.s.a@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Recover the successful return from the module initialization function that was accidentally lost during the netdev creation support integration. Fixes: ???? ("wwan: add interface creation support") Signed-off-by: Sergey Ryazanov --- drivers/net/wwan/wwan_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wwan/wwan_core.c b/drivers/net/wwan/wwan_core.c index e2490c73ac33..32b2096c5036 100644 --- a/drivers/net/wwan/wwan_core.c +++ b/drivers/net/wwan/wwan_core.c @@ -737,7 +737,8 @@ static int __init wwan_init(void) goto destroy; } - err = 0; + return 0; + destroy: class_destroy(wwan_class); unregister: