Skip to contentSkip to conversation

ide: use get_unaligned_* helpers

PATCH Applied Harvey Harrison 2 participants 2 messages May 2, 2008 – May 3, 2008 libata

lore
Share & tools
lore
#0 lore raw

PATCH 2/8 ide: use get_unaligned_* helpers

---
 drivers/ide/ide-tape.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/ide/ide-tape.c +1 -1
index 1e1f263..d285da5 100644
@@ -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);
 	}
 
Signature · 1 line
1.5.5.1.350.gbbbf