diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-01-16 18:54:22 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-29 21:01:09 +0100 |
commit | 8b76f5da49f0d432a747dbc0c4667dcd1ffb9945 (patch) | |
tree | 278ce707e2f7988b82ab9176d8794c743d7946eb /drivers/ide/ide-taskfile.c | |
parent | Merge tag 'hwmon-for-linus-v4.16' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
download | linux-8b76f5da49f0d432a747dbc0c4667dcd1ffb9945.tar.xz linux-8b76f5da49f0d432a747dbc0c4667dcd1ffb9945.zip |
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>
Diffstat (limited to 'drivers/ide/ide-taskfile.c')
-rw-r--r-- | drivers/ide/ide-taskfile.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; |