From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick DELAUNAY Date: Tue, 24 Mar 2020 08:34:00 +0000 Subject: [PATCH 03/10] arm: stm32mp: bsec: remove unneeded test In-Reply-To: <20200212183744.5309-4-patrick.delaunay@st.com> References: <20200212183744.5309-1-patrick.delaunay@st.com> <20200212183744.5309-4-patrick.delaunay@st.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, > From: Patrick DELAUNAY > Sent: mercredi 12 f?vrier 2020 19:38 > > Remove the test offs < 0 , as offs is unsigned. > > This patch solves the warnings when compiling with W=1 on stm32mp1 board: > > In function ?stm32mp_bsec_read?: > arch/arm/mach-stm32mp/bsec.c:368:11: warning: > comparison of unsigned expression < 0 is always false [-Wtype-limits] > 368 | if (offs < 0 || (offs % 4) || (size % 4)) > | ^ > In function ?stm32mp_bsec_write?: > arch/arm/mach-stm32mp/bsec.c:405:11: warning: > comparison of unsigned expression < 0 is always false [-Wtype-limits] > 405 | if (offs < 0 || (offs % 4) || (size % 4)) > | ^ > > Signed-off-by: Patrick Delaunay > --- Applied to u-boot-stm/next, thanks! Regards Patrick