]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
firewire: ohci: Remove unused function
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Fri, 2 Jan 2015 21:02:43 +0000 (22:02 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 22 Jan 2015 10:08:52 +0000 (11:08 +0100)
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 <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/ohci.c

index aff9018d06588d7b37cf6f836cb62d12d0597bf0..f51d376d10ba64e9bc5c8e2ecb953582011f90e9 100644 (file)
@@ -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);