Revision 42741212 hw/scsi-disk.c
b/hw/scsi-disk.c | ||
---|---|---|
269 | 269 |
} |
270 | 270 |
} |
271 | 271 |
|
272 |
static int scsi_write_data(SCSIRequest *req)
|
|
272 |
static void scsi_write_data(SCSIRequest *req)
|
|
273 | 273 |
{ |
274 | 274 |
SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req); |
275 | 275 |
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); |
... | ... | |
281 | 281 |
if (r->req.cmd.mode != SCSI_XFER_TO_DEV) { |
282 | 282 |
DPRINTF("Data transfer direction invalid\n"); |
283 | 283 |
scsi_write_complete(r, -EINVAL); |
284 |
return 0;
|
|
284 |
return; |
|
285 | 285 |
} |
286 | 286 |
|
287 | 287 |
n = r->iov.iov_len / 512; |
... | ... | |
296 | 296 |
/* Invoke completion routine to fetch data from host. */ |
297 | 297 |
scsi_write_complete(r, 0); |
298 | 298 |
} |
299 |
|
|
300 |
return 0; |
|
301 | 299 |
} |
302 | 300 |
|
303 | 301 |
static void scsi_dma_restart_bh(void *opaque) |
Also available in: Unified diff