Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea50aab5 authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman
Browse files

staging: csr: remove csrPanic and CSR_LOG_ASSERT and CSR_LOG_ASSERT_ENABLE



these are not called at anypoint or enabled at anyplace in the code,
remove them

Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7f7a252c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -70,5 +70,4 @@ csr_helper-y := csr_time.o \
		csr_framework_ext.o		\
		csr_wifi_serialize_primitive_types.o	\
		csr_serialize_primitive_types.o	\
		csr_msgconv.o			\
		csr_panic.o
		csr_msgconv.o
+0 −1
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
#include <linux/bitops.h>

#include "csr_framework_ext.h"
#include "csr_panic.h"

/*----------------------------------------------------------------------------*
 *  NAME
+0 −13
Original line number Diff line number Diff line
@@ -11,7 +11,6 @@
*****************************************************************************/

#include "csr_sched.h"
#include "csr_panic.h"
#include "csr_prim_defs.h"
#include "csr_msgconv.h"

@@ -80,18 +79,6 @@ u8 CsrLogTaskIsFiltered(CsrSchedQid taskId, CsrLogLevelTask level);
#define CSR_LOG_STRINGIFY_REAL(a) (#a)
#define CSR_LOG_STRINGIFY(a) CSR_LOG_STRINGIFY_REAL(a)

#ifdef CSR_LOG_ASSERT_ENABLE
#define CSR_LOG_ASSERT(cond) \
	do { \
		if (!(cond)) { \
			char *panic_arg = "[" __FILE__ ":" CSR_LOG_STRINGIFY(__LINE__) "] - " CSR_LOG_STRINGIFY(cond); \
			CsrPanic(CSR_TECH_FW, CSR_PANIC_FW_ASSERTION_FAIL, panic_arg); \
		} \
	} while (0)
#else
#define CSR_LOG_ASSERT(cond)
#endif

typedef struct {
	u16            primitiveType;
	const char *primitiveName;
+0 −1
Original line number Diff line number Diff line
@@ -11,7 +11,6 @@
#include <linux/module.h>
#include <linux/types.h>
#include <linux/slab.h>
#include "csr_panic.h"
#include "csr_sched.h"
#include "csr_msgconv.h"
#include "csr_macro.h"

drivers/staging/csr/csr_panic.c

deleted100644 → 0
+0 −20
Original line number Diff line number Diff line
/*****************************************************************************

            (c) Cambridge Silicon Radio Limited 2010
            All rights reserved and confidential information of CSR

            Refer to LICENSE.txt included with this source for details
            on the license terms.

*****************************************************************************/

#include <linux/kernel.h>
#include <linux/module.h>

#include "csr_panic.h"

void CsrPanic(u8 tech, u16 reason, const char *p)
{
    BUG_ON(1);
}
EXPORT_SYMBOL_GPL(CsrPanic);
Loading