Skip to content

Commit

Permalink
firewire: ohci: Remove unused function
Browse files Browse the repository at this point in the history
Remove the function ar_prev_buffer_index() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <[email protected]>
Signed-off-by: Stefan Richter <[email protected]>
  • Loading branch information
Rickard Strandqvist authored and Stefan Richter committed Jan 22, 2015
1 parent ec6f34e commit b625a82
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/firewire/ohci.c
Original file line number Diff line number Diff line change
Expand Up @@ -718,11 +718,6 @@ static inline unsigned int ar_next_buffer_index(unsigned int index)
return (index + 1) % AR_BUFFERS;
}

static inline unsigned int ar_prev_buffer_index(unsigned int index)
{
return (index - 1 + AR_BUFFERS) % AR_BUFFERS;
}

static inline unsigned int ar_first_buffer_index(struct ar_context *ctx)
{
return ar_next_buffer_index(ctx->last_buffer_index);
Expand Down

0 comments on commit b625a82

Please sign in to comment.