瀏覽代碼

ide: use get_unaligned_* helpers

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Harvey Harrison 17 年之前
父節點
當前提交
5d0cc8ae29
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/ide/ide-tape.c

+ 1 - 1
drivers/ide/ide-tape.c

@@ -538,7 +538,7 @@ static void idetape_analyze_error(ide_drive_t *drive, u8 *sense)
 	if (pc->flags & PC_FLAG_DMA_ERROR) {
 	if (pc->flags & PC_FLAG_DMA_ERROR) {
 		pc->xferred = pc->req_xfer -
 		pc->xferred = pc->req_xfer -
 			tape->blk_size *
 			tape->blk_size *
-			be32_to_cpu(get_unaligned((u32 *)&sense[3]));
+			get_unaligned_be32(&sense[3]);
 		idetape_update_buffers(pc);
 		idetape_update_buffers(pc);
 	}
 	}