Re: [PATCH] w1: remove redundant assignments to search_bit and last_rn

2017-12-05 Thread Evgeniy Polyakov
Hi 07.11.2017, 21:49, "Colin King" : > From: Colin Ian King > > Variables search_bit and last_rn are assigned values before a while-loop > however these initial values are never read (as they are overwritten > inside the loop). Thus these initial assignments are redundant and can > be removed. Cl

[PATCH] w1: remove redundant assignments to search_bit and last_rn

2017-11-07 Thread Colin King
From: Colin Ian King Variables search_bit and last_rn are assigned values before a while-loop however these initial values are never read (as they are overwritten inside the loop). Thus these initial assignments are redundant and can be removed. Cleans up clang warnings: drivers/w1/w1.c:967:2: w