diff options
author | Jarod Wilson <jwilson@redhat.com> | 2008-03-08 13:18:58 -0500 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2008-04-18 11:55:36 -0400 |
commit | 15f0d833f63da2fa49aed81480a37d5e896b5b9b (patch) | |
tree | f54b02af409cdb474a143d89ad58600ad63edf46 /drivers/firewire | |
parent | cca6097713c62eac43aef27b31e7f1553dde4f94 (diff) |
firewire: use bitwise and to get reg in handle_registers
for code efficiency.
Signed-off-by: Jarod Wilson <jwilson@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire')
-rw-r--r-- | drivers/firewire/fw-transaction.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/fw-transaction.c b/drivers/firewire/fw-transaction.c index 47bfe761250f..3682e75a09e1 100644 --- a/drivers/firewire/fw-transaction.c +++ b/drivers/firewire/fw-transaction.c | |||
@@ -797,7 +797,7 @@ handle_registers(struct fw_card *card, struct fw_request *request, | |||
797 | unsigned long long offset, | 797 | unsigned long long offset, |
798 | void *payload, size_t length, void *callback_data) | 798 | void *payload, size_t length, void *callback_data) |
799 | { | 799 | { |
800 | int reg = offset - CSR_REGISTER_BASE; | 800 | int reg = offset & ~CSR_REGISTER_BASE; |
801 | unsigned long long bus_time; | 801 | unsigned long long bus_time; |
802 | __be32 *data = payload; | 802 | __be32 *data = payload; |
803 | 803 | ||