Am 26.02.2020 um 09:46 hat [email protected] geschrieben: > From: Chen Qun <[email protected]> > > Clang static code analyzer show warning: > block/stream.c:186:9: warning: Value stored to 'ret' is never read > ret = 0; > ^ ~ > Reported-by: Euler Robot <[email protected]> > Signed-off-by: Chen Qun <[email protected]> > Reviewed-by: John Snow <[email protected]>
Let's mention that this is unnecessary since commit 1d809098aa9. Since the same commit, the initialisation 'int ret = 0;' is unnecessary because we never read ret before overwriting the initial value. We could clean this up in the same patch. With or without the changes: Reviewed-by: Kevin Wolf <[email protected]>
