On Fri, 2011-05-27 at 12:07 -0700, Andy Grover wrote: > lmap is a member of unmap_sg, so we don't need to pass it separately. > > Signed-off-by: Andy Grover <agrover@xxxxxxxxxx> > --- Committed as 1722480aa7 Thanks, --nab > drivers/target/iscsi/iscsi_target.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c > index db7965e..0741a74 100644 > --- a/drivers/target/iscsi/iscsi_target.c > +++ b/drivers/target/iscsi/iscsi_target.c > @@ -769,9 +769,9 @@ recalc: > } > > static int iscsit_get_offset( > - struct se_offset_map *lmap, > struct se_unmap_sg *usg) > { > + struct se_offset_map *lmap = &usg->lmap; > u32 current_length = 0, current_iscsi_offset = lmap->iscsi_offset; > u32 total_offset = 0; > struct se_cmd *cmd = usg->se_cmd; > @@ -859,7 +859,7 @@ static int iscsit_set_iovec_ptrs( > lmap->iscsi_offset = data_offset; > if (sg_kmap_active) { > unmap_sg->se_cmd = se_cmd; > - iscsit_get_offset(lmap, unmap_sg); > + iscsit_get_offset(unmap_sg); > unmap_sg->data_length = data_length; > } else { > lmap->current_offset = lmap->orig_offset; > -- > 1.7.1 > -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html