diff options
-rw-r--r-- | drivers/firewire/fw-sbp2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/firewire/fw-sbp2.c b/drivers/firewire/fw-sbp2.c index 2c39f19a9ee1..1fc1af7f55af 100644 --- a/drivers/firewire/fw-sbp2.c +++ b/drivers/firewire/fw-sbp2.c | |||
@@ -395,7 +395,7 @@ static void | |||
395 | complete_management_orb(struct sbp2_orb *base_orb, struct sbp2_status *status) | 395 | complete_management_orb(struct sbp2_orb *base_orb, struct sbp2_status *status) |
396 | { | 396 | { |
397 | struct sbp2_management_orb *orb = | 397 | struct sbp2_management_orb *orb = |
398 | (struct sbp2_management_orb *)base_orb; | 398 | container_of(base_orb, struct sbp2_management_orb, base); |
399 | 399 | ||
400 | if (status) | 400 | if (status) |
401 | memcpy(&orb->status, status, sizeof(*status)); | 401 | memcpy(&orb->status, status, sizeof(*status)); |
@@ -838,7 +838,8 @@ sbp2_status_to_sense_data(u8 *sbp2_status, u8 *sense_data) | |||
838 | static void | 838 | static void |
839 | complete_command_orb(struct sbp2_orb *base_orb, struct sbp2_status *status) | 839 | complete_command_orb(struct sbp2_orb *base_orb, struct sbp2_status *status) |
840 | { | 840 | { |
841 | struct sbp2_command_orb *orb = (struct sbp2_command_orb *)base_orb; | 841 | struct sbp2_command_orb *orb = |
842 | container_of(base_orb, struct sbp2_command_orb, base); | ||
842 | struct fw_unit *unit = orb->unit; | 843 | struct fw_unit *unit = orb->unit; |
843 | struct fw_device *device = fw_device(unit->device.parent); | 844 | struct fw_device *device = fw_device(unit->device.parent); |
844 | struct scatterlist *sg; | 845 | struct scatterlist *sg; |