Re: [PATCH 1/1] lib/hashtable: remove superfluous check

2020-10-13 Thread Tom Rini
On Thu, Aug 20, 2020 at 07:57:45PM +0200, Heinrich Schuchardt wrote: > We assign first_deleted = 0. There is no need to check its value without > any further assignment in between. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 1/1] lib/hashtable: remove superfluous check

2020-08-22 Thread Simon Glass
On Thu, 20 Aug 2020 at 11:57, Heinrich Schuchardt wrote: > > We assign first_deleted = 0. There is no need to check its value without > any further assignment in between. > > Signed-off-by: Heinrich Schuchardt > --- > indicated by cppcheck > --- > lib/hashtable.c | 3 +-- > 1 file changed, 1

[PATCH 1/1] lib/hashtable: remove superfluous check

2020-08-20 Thread Heinrich Schuchardt
We assign first_deleted = 0. There is no need to check its value without any further assignment in between. Signed-off-by: Heinrich Schuchardt --- indicated by cppcheck --- lib/hashtable.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/hashtable.c b/lib/hashtable.c