From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 022CF330317; Fri, 17 Oct 2025 15:07:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760713659; cv=none; b=d0gzJaADpo18drcBGwLdUe/MbUM4g6Zry26nLi57wsGFAKSRJHFZkjb2MVnnLYqyRAfZ1u9HJzZRHA7vRUVI6qJdhvxk+xxiy7lLrqqq5FjRgX33kcT90aepYoXsdqi1MNE5B/x3/ldLuZpT6o27CZgUvOS4SH43VhVrIzd2Klk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760713659; c=relaxed/simple; bh=07fuNhLn1efOFg/Te8ggwlHbRWpNtyC/quXaRaaEYjc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Bbdqp75uKlI6tIhpuomwoAbj7aYuvjTexMjXJ695GHHR4JZgK2qF5agP32ylnN2YwRBvLxLgYo2TvVWWgbSlkEzEz9+JVOzu8WD2MzK2Kfey1eAiWvCXfi4QckrdTIMG/INmuMUZ8oVaALoURV9LX5x7pFLPNMuMfXQadSgpkRc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QpgbRSyN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="QpgbRSyN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7ADF2C4CEE7; Fri, 17 Oct 2025 15:07:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760713658; bh=07fuNhLn1efOFg/Te8ggwlHbRWpNtyC/quXaRaaEYjc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QpgbRSyNZaADrmtz5OBHm/YCSSqNQQaYcn8GIZ/UXewoD/4mHCNUUF64PU0cZSUiW H+0kTKbp5RBB9F7gDjO3MfKhwAy7kbITZ0hir7q2BGiGI3aNeI9d/gPCPZF0e3PSDg R1YUn6c2AaOn3FeGuw0nbfKrdNdppzgXFNccLDuQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Qianfeng Rong , Jacopo Mondi , Sakari Ailus , Hans Verkuil Subject: [PATCH 6.6 073/201] media: i2c: mt9v111: fix incorrect type for ret Date: Fri, 17 Oct 2025 16:52:14 +0200 Message-ID: <20251017145137.437837908@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251017145134.710337454@linuxfoundation.org> References: <20251017145134.710337454@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Qianfeng Rong commit bacd713145443dce7764bb2967d30832a95e5ec8 upstream. Change "ret" from unsigned int to int type in mt9v111_calc_frame_rate() to store negative error codes or zero returned by __mt9v111_hw_reset() and other functions. Storing the negative error codes in unsigned type, doesn't cause an issue at runtime but it's ugly as pants. No effect on runtime. Signed-off-by: Qianfeng Rong Fixes: aab7ed1c3927 ("media: i2c: Add driver for Aptina MT9V111") Cc: stable@vger.kernel.org Reviewed-by: Jacopo Mondi Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil Signed-off-by: Greg Kroah-Hartman --- drivers/media/i2c/mt9v111.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/media/i2c/mt9v111.c +++ b/drivers/media/i2c/mt9v111.c @@ -534,8 +534,8 @@ static int mt9v111_calc_frame_rate(struc static int mt9v111_hw_config(struct mt9v111_dev *mt9v111) { struct i2c_client *c = mt9v111->client; - unsigned int ret; u16 outfmtctrl2; + int ret; /* Force device reset. */ ret = __mt9v111_hw_reset(mt9v111);