From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [193.142.43.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25BB243D9 for ; Thu, 23 Jun 2022 12:36:00 +0000 (UTC) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1o4LYP-0005Gy-Qd; Thu, 23 Jun 2022 14:03:21 +0200 Date: Thu, 23 Jun 2022 14:03:21 +0200 From: Florian Westphal To: Geliang Tang Cc: mptcp@lists.linux.dev Subject: Re: [PATCH mptcp-next v8 1/6] Squash to "mptcp: add get_subflow wrappers" Message-ID: <20220623120321.GA21459@breakpoint.cc> References: Precedence: bulk X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Geliang Tang wrote: > -struct sock *mptcp_sched_get_send(struct mptcp_sock *msk) > +struct sock *mptcp_sched_get_send(struct mptcp_sock *msk, int *err) > { Why the extra *err? Almost everyone else uses ERR_PTR, PTR_ERR, IS_ERR, etc. to return the error code directly, why not follow that model?