Skip to content

Commit

Permalink
sata_mv: Clean up hard coded array size calculation.
Browse files Browse the repository at this point in the history
Use ARRAY_SIZE macro of kernel api instead.

Signed-off-by: Thiago Farina <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
  • Loading branch information
tfarina authored and Jeff Garzik committed Dec 3, 2009
1 parent 7095e3e commit 4c4a90f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ata/sata_mv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2217,7 +2217,7 @@ static unsigned int mv_qc_issue_fis(struct ata_queued_cmd *qc)
int err = 0;

ata_tf_to_fis(&qc->tf, link->pmp, 1, (void *)fis);
err = mv_send_fis(ap, fis, sizeof(fis) / sizeof(fis[0]));
err = mv_send_fis(ap, fis, ARRAY_SIZE(fis));
if (err)
return err;

Expand Down

0 comments on commit 4c4a90f

Please sign in to comment.