From 8b76f5da49f0d432a747dbc0c4667dcd1ffb9945 Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Tue, 16 Jan 2018 17:54:22 +0000 Subject: ide: remove duplicated assignment to 'cursg' 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 initialization is never read Signed-off-by: Colin Ian King Signed-off-by: David S. Miller --- drivers/ide/ide-taskfile.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/ide') diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide-taskfile.c index 4efe4c6e956c..abe0822dd429 100644 --- a/drivers/ide/ide-taskfile.c +++ b/drivers/ide/ide-taskfile.c @@ -232,7 +232,6 @@ void ide_pio_bytes(ide_drive_t *drive, struct ide_cmd *cmd, unsigned int offset; u8 *buf; - cursg = cmd->cursg; if (cursg == NULL) cursg = cmd->cursg = sg; -- cgit v1.2.1