diff options
author | Kristian Høgsberg <krh@redhat.com> | 2007-05-10 01:23:14 +0200 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-05-10 18:24:14 +0200 |
commit | 2d826cc5c791bdc5f5651324c485746be9492be0 (patch) | |
tree | 7c46ff209d06f1f8949aa2c3e10491594d10e203 /drivers/firewire/fw-transaction.c | |
parent | firewire: Drop single buffer request support. (diff) | |
download | linux-2d826cc5c791bdc5f5651324c485746be9492be0.tar.xz linux-2d826cc5c791bdc5f5651324c485746be9492be0.zip |
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 '')
-rw-r--r-- | drivers/firewire/fw-transaction.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/firewire/fw-transaction.c b/drivers/firewire/fw-transaction.c index 01c438f1c670..80d0121463d0 100644 --- a/drivers/firewire/fw-transaction.c +++ b/drivers/firewire/fw-transaction.c @@ -305,7 +305,7 @@ static void send_phy_packet(struct fw_card *card, u32 data, int generation) { struct fw_packet *packet; - packet = kzalloc(sizeof *packet, GFP_ATOMIC); + packet = kzalloc(sizeof(*packet), GFP_ATOMIC); if (packet == NULL) return; @@ -572,7 +572,7 @@ allocate_request(struct fw_packet *p) return NULL; } - request = kmalloc(sizeof *request + length, GFP_ATOMIC); + request = kmalloc(sizeof(*request) + length, GFP_ATOMIC); if (request == NULL) return NULL; @@ -592,7 +592,7 @@ allocate_request(struct fw_packet *p) if (data) memcpy(request->data, data, length); - memcpy(request->request_header, p->header, sizeof p->header); + memcpy(request->request_header, p->header, sizeof(p->header)); return request; } |