From: Harvey Harrison Date: Tue, 15 Jul 2008 19:21:41 +0000 (+0200) Subject: ide: use get_unaligned_* helpers X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5d0cc8ae29b310ceb6516a6840ca22738aab7820;p=openwrt%2Fstaging%2Fblogic.git ide: use get_unaligned_* helpers Signed-off-by: Harvey Harrison Cc: Andrew Morton Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 2d822df08658..1a96cc503994 100644 --- a/drivers/ide/ide-tape.c +++ b/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) { 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); }