From: Rickard Strandqvist Date: Fri, 2 Jan 2015 21:02:43 +0000 (+0100) Subject: firewire: ohci: Remove unused function X-Git-Tag: v4.0-rc1~49^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b625a825955ede39047e821f4b69f36cf042b952;p=karo-tx-linux.git firewire: ohci: Remove unused function 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 Signed-off-by: Stefan Richter --- diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c index aff9018d0658..f51d376d10ba 100644 --- a/drivers/firewire/ohci.c +++ b/drivers/firewire/ohci.c @@ -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);