Commit 03a6cddb authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman
Browse files

staging: Use static const char * const where possible



Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a09eae85
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -5075,7 +5075,7 @@ ar6000_hbChallengeResp_event(AR_SOFTC_T *ar, A_UINT32 cookie, A_UINT32 source)
void
ar6000_reportError_event(AR_SOFTC_T *ar, WMI_TARGET_ERROR_VAL errorVal)
{
    char    *errString[] = {
	static const char * const errString[] = {
		[WMI_TARGET_PM_ERR_FAIL]    "WMI_TARGET_PM_ERR_FAIL",
		[WMI_TARGET_KEY_NOT_FOUND]  "WMI_TARGET_KEY_NOT_FOUND",
		[WMI_TARGET_DECRYPTION_ERR] "WMI_TARGET_DECRYPTION_ERR",
+3 −2
Original line number Diff line number Diff line
#include "headers.h"

char *buff_dump_base[]={"DEC", "HEX",  "OCT", "BIN"	};

static UINT current_debug_level=BCM_SCREAM;

int bcm_print_buffer( UINT debug_level, const char *function_name,
				  char *file_name, int line_number, unsigned char *buffer, int bufferlen, unsigned int base)
{
	static const char * const buff_dump_base[] = {
		"DEC", "HEX", "OCT", "BIN"
	};
	if(debug_level>=current_debug_level)
	{
		int i=0;