소스 검색

ide-floppy: remove superfluous check from ide_floppy_end_request()

There should be no functional changes caused by this patch.

Acked-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Bartlomiej Zolnierkiewicz 16 년 전
부모
커밋
cc495557df
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      drivers/ide/ide-floppy.c

+ 1 - 3
drivers/ide/ide-floppy.c

@@ -91,9 +91,7 @@ static int ide_floppy_end_request(ide_drive_t *drive, int uptodate, int nsecs)
 
 
 	if (error)
 	if (error)
 		floppy->failed_pc = NULL;
 		floppy->failed_pc = NULL;
-	/* Why does this happen? */
-	if (!rq)
-		return 0;
+
 	if (!blk_special_request(rq)) {
 	if (!blk_special_request(rq)) {
 		/* our real local end request function */
 		/* our real local end request function */
 		ide_end_request(drive, uptodate, nsecs);
 		ide_end_request(drive, uptodate, nsecs);