aac: Move sge64 declaration into the #ifdef __amd64__ block.
This commit is contained in:
parent
d557e89abb
commit
5cd9d25403
@ -3053,7 +3053,6 @@ aac_ioctl_send_raw_srb(struct aac_softc *sc, caddr_t arg)
|
||||
struct aac_fib *fib;
|
||||
struct aac_srb *srbcmd, *user_srb;
|
||||
struct aac_sg_entry *sge;
|
||||
struct aac_sg_entry64 *sge64;
|
||||
void *srb_sg_address, *ureply;
|
||||
uint32_t fibsize, srb_sg_bytecount;
|
||||
int error, transfer_data;
|
||||
@ -3108,7 +3107,6 @@ aac_ioctl_send_raw_srb(struct aac_softc *sc, caddr_t arg)
|
||||
struct aac_sg_entry sg;
|
||||
|
||||
sge = srbcmd->sg_map.SgEntry;
|
||||
sge64 = NULL;
|
||||
|
||||
if ((error = copyin(sge, &sg, sizeof(sg))) != 0)
|
||||
goto out;
|
||||
@ -3119,6 +3117,7 @@ aac_ioctl_send_raw_srb(struct aac_softc *sc, caddr_t arg)
|
||||
#ifdef __amd64__
|
||||
else if (fibsize == (sizeof(struct aac_srb) +
|
||||
srbcmd->sg_map.SgCount * sizeof(struct aac_sg_entry64))) {
|
||||
struct aac_sg_entry64 *sge64;
|
||||
struct aac_sg_entry64 sg;
|
||||
|
||||
sge = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user