Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6840094rwl; Mon, 9 Jan 2023 13:53:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXt4BPvjrge2c8OL0wC7Cf/rz2X7KGWVMhUfBqqCMrlwEh7rAkr74HenRNg07ErMNA5kWpSj X-Received: by 2002:a17:903:54d:b0:188:f47f:ac06 with SMTP id jo13-20020a170903054d00b00188f47fac06mr66734209plb.19.1673301236201; Mon, 09 Jan 2023 13:53:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673301236; cv=none; d=google.com; s=arc-20160816; b=Yrb/PC3n/Fo9cS0StUfTpHF0gEzafMAlJEFRMJHCuK6ZWxfDwlGn9E8SrhRl4No15E C6A051UwkHtVqKKJtePhA+YVLqZQTxk2yWh9SaHIGbXfiQpmiDGS6dbKPXfh7ev0fSBp CKOXSLz2bUu1iQDelaDqccGe9j9+BmM75FDBrPlGaUOHFetpF2Gapdw5TQezUzrWhvvx veljQhbf2IYThnvifFtcBLornxPC5XS3Z7SGAVDBbCAbr+31lhRrRTvfXgjTWuJaJo+F sZQyGCSdlcblCFNpcQ1D+tFlJqZxu144c07vDfX3gyzAexw4eWeoydLB1KAk/71tlxU8 A1GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=0IsoQAH0VxXr2L3HMfDDF25lwPhRTcGt/bNTn+V4ptg=; b=WNOuKTg7CoWL4RVNyTrvU35cz/NAWM+/5CZQT8EcCsN/ryc0rPJtWckBrj56C3uHlu TZrGrux9cIWHKmnJLUYGRyoL+uhZoBm2XYmqnPg9mc2NkCbITEK9SvvrTQP8n4QveXtP RvwxXy6yH+cxanFbDq6TL+AoLhPAsxVil+3ZCeitb8bLDwV0TqA9KlTB/ffKBITLHwGY YEc8oIXzEHoDaTMLlTXqmcylYUK8YgJycMtTPvNclMAENnq6AMjsl3zR93uo1E+BzUGr oim17r86jfBgbgQJJe91xJ1XcnEyDi3ts7QemSfA1cq7VO01T3buvFlTMq41YtZhqRrT DhcA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020a170902dac300b00189907c6b9asi10757354plx.302.2023.01.09.13.53.49; Mon, 09 Jan 2023 13:53:56 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237849AbjAIVZY (ORCPT + 55 others); Mon, 9 Jan 2023 16:25:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238045AbjAIVYw (ORCPT ); Mon, 9 Jan 2023 16:24:52 -0500 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47266101DA for ; Mon, 9 Jan 2023 13:24:20 -0800 (PST) Received: from martin by viti.kaiser.cx with local (Exim 4.89) (envelope-from ) id 1pEzcr-0007gB-So; Mon, 09 Jan 2023 22:24:13 +0100 Date: Mon, 9 Jan 2023 22:24:13 +0100 From: Martin Kaiser To: Pavel Skripkin Cc: Greg Kroah-Hartman , Larry Finger , Phillip Potter , Michael Straube , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 06/13] staging: r8188eu: make rtl8188eu_inirp_init a void function Message-ID: <20230109212413.mcypwhpmtsj3rgj3@viti.kaiser.cx> References: <20230108185738.597105-1-martin@kaiser.cx> <20230108185738.597105-7-martin@kaiser.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: Martin Kaiser X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 Hi Pavel, Thus wrote Pavel Skripkin (paskripkin@gmail.com): > Martin Kaiser says: > > rtl8188eu_inirp_init's return value is not checked by its caller. Make > > rtl8188eu_inirp_init a void function. > Hm, shouldn't we actually check return value on caller side? > This thing is called from netdev_open and issues urbs to read data from the > device. So let's imagine that we fail on 1st iteration (for some reason): > netdev_open() says all is OK, but driver does not communicate with the > device. your're right. It makes sense to relay the return value to _netdev_open. We'd have to update/remove the intf_start pointer and usb_intf_start. I'll resend the series without this patch and submit new patches for relaying the error code. Thanks & best regards, Martin