diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-09 15:56:58 -0700 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-09 15:56:58 -0700 | 
| commit | 56868a460b83c0f93d339256a81064d89aadae8e (patch) | |
| tree | 7df967bddaab36c88005d5d7b8a07fc94cffb798 /drivers/ide/ide-io.c | |
| parent | 7fc22f45fef00b55d9517e340650b6a0368faff1 (diff) | |
| parent | acfead32f3f938e456d7d5e1a82c743d30b8b886 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide
Pull IDE updates from David Miller:
 "Two small cleanups in the IDE layer"
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide:
  ide: don't call memcpy with the same source and destination
  ide: use setup_timer
Diffstat (limited to 'drivers/ide/ide-io.c')
| -rw-r--r-- | drivers/ide/ide-io.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/drivers/ide/ide-io.c b/drivers/ide/ide-io.c index 45b3f41a43d4..323af721f8cb 100644 --- a/drivers/ide/ide-io.c +++ b/drivers/ide/ide-io.c @@ -107,7 +107,7 @@ void ide_complete_cmd(ide_drive_t *drive, struct ide_cmd *cmd, u8 stat, u8 err)  		if (cmd->tf_flags & IDE_TFLAG_DYN)  			kfree(orig_cmd); -		else +		else if (cmd != orig_cmd)  			memcpy(orig_cmd, cmd, sizeof(*cmd));  	}  } | 
