Re: [PATCH] ide: remove duplicated assignment to 'cursg'

2018-01-29 Thread David Miller
From: Colin King Date: Tue, 16 Jan 2018 17:54:22 + > From: Colin Ian King > > Pointer cursg is initialized to cmd->cursg and again re-assigned the > same value a few lines later, hence the second assignment is redundant > and can be removed. > > Cleans up clang warning: > drivers/ide/ide-t

[PATCH] ide: remove duplicated assignment to 'cursg'

2018-01-16 Thread Colin King
From: Colin Ian King Pointer cursg is initialized to cmd->cursg and again re-assigned the same value a few lines later, hence the second assignment is redundant and can be removed. Cleans up clang warning: drivers/ide/ide-taskfile.c:229:22: warning: Value stored to 'cursg' during its initializat