提交 5d0cc8ae 编写于 作者: H Harvey Harrison 提交者: Bartlomiej Zolnierkiewicz

ide: use get_unaligned_* helpers

Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
上级 a792bd5a
...@@ -538,7 +538,7 @@ static void idetape_analyze_error(ide_drive_t *drive, u8 *sense) ...@@ -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);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册