diff options
author | Kristian Høgsberg <krh@redhat.com> | 2007-05-09 19:23:14 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-05-10 12:24:14 -0400 |
commit | 2d826cc5c791bdc5f5651324c485746be9492be0 (patch) | |
tree | 7c46ff209d06f1f8949aa2c3e10491594d10e203 /drivers/firewire/fw-card.c | |
parent | 213d7bbd76673fb1b26f1786af180bac07e57652 (diff) |
firewire: Always use parens with sizeof.
Signed-off-by: Kristian Hoegsberg <krh@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/fw-card.c')
-rw-r--r-- | drivers/firewire/fw-card.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/firewire/fw-card.c b/drivers/firewire/fw-card.c index b8404ee5314c..636151a64add 100644 --- a/drivers/firewire/fw-card.c +++ b/drivers/firewire/fw-card.c | |||
@@ -75,7 +75,7 @@ generate_config_rom(struct fw_card *card, size_t *config_rom_length) | |||
75 | * the version stored in the OHCI registers. | 75 | * the version stored in the OHCI registers. |
76 | */ | 76 | */ |
77 | 77 | ||
78 | memset(config_rom, 0, sizeof config_rom); | 78 | memset(config_rom, 0, sizeof(config_rom)); |
79 | config_rom[0] = BIB_CRC_LENGTH(4) | BIB_INFO_LENGTH(4) | BIB_CRC(0); | 79 | config_rom[0] = BIB_CRC_LENGTH(4) | BIB_INFO_LENGTH(4) | BIB_CRC(0); |
80 | config_rom[1] = 0x31333934; | 80 | config_rom[1] = 0x31333934; |
81 | 81 | ||
@@ -258,7 +258,7 @@ fw_card_bm_work(struct work_struct *work) | |||
258 | fw_send_request(card, &bmd.t, TCODE_LOCK_COMPARE_SWAP, | 258 | fw_send_request(card, &bmd.t, TCODE_LOCK_COMPARE_SWAP, |
259 | irm_id, generation, | 259 | irm_id, generation, |
260 | SCODE_100, CSR_REGISTER_BASE + CSR_BUS_MANAGER_ID, | 260 | SCODE_100, CSR_REGISTER_BASE + CSR_BUS_MANAGER_ID, |
261 | &bmd.lock, sizeof bmd.lock, | 261 | &bmd.lock, sizeof(bmd.lock), |
262 | complete_bm_lock, &bmd); | 262 | complete_bm_lock, &bmd); |
263 | wait_for_completion(&bmd.done); | 263 | wait_for_completion(&bmd.done); |
264 | 264 | ||