Skip to content

Commit

Permalink
Staging: echo: remove __cplusplus macro magic
Browse files Browse the repository at this point in the history
The kernel is written in C, so remove the __cplusplus macro magic from the
driver.

Cc: David Rowe <david@rowetel.com>
Cc: Steve Underwood <steveu@coppice.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Pekka Enberg authored and Greg Kroah-Hartman committed Oct 22, 2008
1 parent f07639a commit 6675fe3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions drivers/staging/echo/bit_operations.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
#if !defined(_BIT_OPERATIONS_H_)
#define _BIT_OPERATIONS_H_

#ifdef __cplusplus
extern "C" {
#endif

#if defined(__i386__) || defined(__x86_64__)
/*! \brief Find the bit position of the highest set bit in a word
\param bits The word to be searched
Expand Down Expand Up @@ -245,9 +241,5 @@ static __inline__ int parity32(uint32_t x)
}
/*- End of function --------------------------------------------------------*/

#ifdef __cplusplus
}
#endif

#endif
/*- End of file ------------------------------------------------------------*/
8 changes: 0 additions & 8 deletions drivers/staging/echo/fir.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ typedef struct
float *history;
} fir_float_state_t;

#ifdef __cplusplus
extern "C" {
#endif

static __inline__ const int16_t *fir16_create(fir16_state_t *fir,
const int16_t *coeffs,
int taps)
Expand Down Expand Up @@ -312,9 +308,5 @@ static __inline__ int16_t fir32(fir32_state_t *fir, int16_t sample)
}
/*- End of function --------------------------------------------------------*/

#ifdef __cplusplus
}
#endif

#endif
/*- End of file ------------------------------------------------------------*/

0 comments on commit 6675fe3

Please sign in to comment.