From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 F15C41836E3 for ; Mon, 15 Jul 2024 07:11:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721027512; cv=none; b=GTL5xlxWOSPwnWE7mXf3tR5M+atOvXFqK6JDOA8TNr/6aXDbuze2XI6VycmvACy/zXRdEi0EocGPY5tPRwv+zpFfm22wCoPBIoeVMSHjGDBVyOUU1QQb+GnK+d4ZnFlHz3prlHkZXO3RMAZ7wW3QKhK8YiImAjtyIsprop0p3ds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721027512; c=relaxed/simple; bh=Jl9F54gKC2HZ6RkFE/JPLXbjvDwLcSrFahwOTKM89U8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pHUTwHM5AR8SLeNsRPJM5A32Z+v3hUbWazolQMtYs2EkS5vUx9hQVFHuHV7umjeGCMpZK0jxfX7JX1sr6akecbd+Z5PlHzNw78uq8V0xzfx/vJs+OE3Xj4aX6l/7Vxv648A1oOYKlFnSMXhsuqD3rqCpmreAF4TBDQSyaGULmGM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sTFrr-0000ot-Hi; Mon, 15 Jul 2024 09:11:27 +0200 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sTFrq-009e7s-32; Mon, 15 Jul 2024 09:11:26 +0200 Received: from mfe by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1sTFrp-000JYF-3D; Mon, 15 Jul 2024 09:11:26 +0200 Date: Mon, 15 Jul 2024 09:11:25 +0200 From: Marco Felsch To: Dan Carpenter Cc: Heikki Krogerus , Greg Kroah-Hartman , RD Babiera , Guenter Roeck , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] usb: typec: tcpci: Fix error code in tcpci_check_std_output_cap() Message-ID: <20240715071125.p5a7eidkvo2jqcvk@pengutronix.de> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Hi, On 24-07-12, Dan Carpenter wrote: > The tcpci_check_std_output_cap() function is supposed to return negative > error codes but it's declared as type bool so the error handling doesn't > work. Declare it as an int instead. sorry I missed this :/ in the first place, thank you for the fix. > Fixes: 62ce9ef14797 ("usb: typec: tcpci: add support to set connector orientation") > Signed-off-by: Dan Carpenter Reviewed-by: Marco Felsch