Skip to content

Commit 8b76f5d

Browse files
Colin Ian Kingdavem330
authored andcommitted
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 <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 47d5cc5 commit 8b76f5d

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/ide/ide-taskfile.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ void ide_pio_bytes(ide_drive_t *drive, struct ide_cmd *cmd,
232232
unsigned int offset;
233233
u8 *buf;
234234

235-
cursg = cmd->cursg;
236235
if (cursg == NULL)
237236
cursg = cmd->cursg = sg;
238237

0 commit comments

Comments
 (0)