Pull battery into release branch
[firefly-linux-kernel-4.4.55.git] / drivers / scsi / sym53c8xx_2 / sym_glue.h
index e022d3c71b59fc55e5679315ae167600fd091ce7..0f097ba4f71233e47bacdb7e2ae554dfeeb4e918 100644 (file)
@@ -255,7 +255,7 @@ sym_get_cam_status(struct scsi_cmnd *cmd)
  */
 static __inline void sym_set_cam_result_ok(struct sym_ccb *cp, struct scsi_cmnd *cmd, int resid)
 {
-       cmd->resid = resid;
+       scsi_set_resid(cmd, resid);
        cmd->result = (((DID_OK) << 16) + ((cp->ssss_status) & 0x7f));
 }
 void sym_set_cam_result_error(struct sym_hcb *np, struct sym_ccb *cp, int resid);