target: Core cleanups from AGrover (round 1)
[pandora-kernel.git] / drivers / target / tcm_fc / tfc_io.c
index 4c3c0ef..47efcfb 100644 (file)
@@ -90,7 +90,7 @@ int ft_queue_data_in(struct se_cmd *se_cmd)
        lport = ep->lp;
        cmd->seq = lport->tt.seq_start_next(cmd->seq);
 
-       task = T_TASK(se_cmd);
+       task = se_cmd->t_task;
        BUG_ON(!task);
        remaining = se_cmd->data_length;
 
@@ -203,7 +203,7 @@ int ft_queue_data_in(struct se_cmd *se_cmd)
                        /* XXX For now, initiator will retry */
                        if (printk_ratelimit())
                                printk(KERN_ERR "%s: Failed to send frame %p, "
-                                               "xid <0x%x>, remaining <0x%x>, "
+                                               "xid <0x%x>, remaining %zu, "
                                                "lso_max <0x%x>\n",
                                                __func__, fp, ep->xid,
                                                remaining, lport->lso_max);
@@ -236,7 +236,7 @@ void ft_recv_write_data(struct ft_cmd *cmd, struct fc_frame *fp)
        u32 f_ctl;
        void *buf;
 
-       task = T_TASK(se_cmd);
+       task = se_cmd->t_task;
        BUG_ON(!task);
 
        fh = fc_frame_header_get(fp);