projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7095e3e
)
sata_mv: Clean up hard coded array size calculation.
author
Thiago Farina
<tfransosi@gmail.com>
Sun, 8 Nov 2009 19:30:57 +0000
(14:30 -0500)
committer
Jeff Garzik
<jgarzik@redhat.com>
Thu, 3 Dec 2009 07:46:34 +0000
(
02:46
-0500)
Use ARRAY_SIZE macro of kernel api instead.
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/sata_mv.c
patch
|
blob
|
history
diff --git
a/drivers/ata/sata_mv.c
b/drivers/ata/sata_mv.c
index
6f5093b
..
a8a7be0
100644
(file)
--- a/
drivers/ata/sata_mv.c
+++ b/
drivers/ata/sata_mv.c
@@
-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;