Re: [PATCH][next] drm/amd/display: fix for-loop with incorrectly sized loop counter

2020-01-27 Thread Alex Deucher
Applied with Walter's comment included. Thanks! Alex On Fri, Jan 17, 2020 at 9:45 AM walter harms wrote: > > > > Am 17.01.2020 14:33, schrieb Colin King: > > From: Colin Ian King > > > > A for-loop is iterating from 0 up to 1000 however the loop variable count > > is a u8 and hence not large

Re: [PATCH][next] drm/amd/display: fix for-loop with incorrectly sized loop counter

2020-01-17 Thread walter harms
Am 17.01.2020 14:33, schrieb Colin King: > From: Colin Ian King > > A for-loop is iterating from 0 up to 1000 however the loop variable count > is a u8 and hence not large enough. Fix this by making count an int. > Also remove the redundant initialization of count since this is never used >

[PATCH][next] drm/amd/display: fix for-loop with incorrectly sized loop counter

2020-01-17 Thread Colin King
From: Colin Ian King A for-loop is iterating from 0 up to 1000 however the loop variable count is a u8 and hence not large enough. Fix this by making count an int. Also remove the redundant initialization of count since this is never used and add { } on the loop statement make the loop block