Skip to content

Commit

Permalink
firewire: use bitwise and to get reg in handle_registers
Browse files Browse the repository at this point in the history
for code efficiency.

Signed-off-by: Jarod Wilson <jwilson@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
  • Loading branch information
Jarod Wilson authored and Stefan Richter committed Apr 18, 2008
1 parent cca6097 commit 15f0d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/firewire/fw-transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ handle_registers(struct fw_card *card, struct fw_request *request,
unsigned long long offset,
void *payload, size_t length, void *callback_data)
{
int reg = offset - CSR_REGISTER_BASE;
int reg = offset & ~CSR_REGISTER_BASE;
unsigned long long bus_time;
__be32 *data = payload;

Expand Down

0 comments on commit 15f0d83

Please sign in to comment.