mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-15 09:55:36 +00:00
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>
This commit is contained in:
parent
a792bd5a40
commit
5d0cc8ae29
@ -538,7 +538,7 @@ static void idetape_analyze_error(ide_drive_t *drive, u8 *sense)
|
||||
if (pc->flags & PC_FLAG_DMA_ERROR) {
|
||||
pc->xferred = pc->req_xfer -
|
||||
tape->blk_size *
|
||||
be32_to_cpu(get_unaligned((u32 *)&sense[3]));
|
||||
get_unaligned_be32(&sense[3]);
|
||||
idetape_update_buffers(pc);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user