Skip to content

Commit

Permalink
mt6765: Silence some clang warnings
Browse files Browse the repository at this point in the history
Signed-off-by: wulan17 <galihgustip@gmail.com>
  • Loading branch information
wulan17 authored and Hadenix committed Feb 2, 2024
1 parent 8362e3d commit 6ca2a8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions arch/arm64/include/asm/percpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static inline unsigned long __my_cpu_offset(void)
static inline unsigned long __percpu_##op(void *ptr, \
unsigned long val, int size) \
{ \
unsigned long loop, ret; \
unsigned long loop, ret = 0; \
\
switch (size) { \
case 1: \
Expand Down Expand Up @@ -107,7 +107,7 @@ PERCPU_OP(or, orr)

static inline unsigned long __percpu_read(void *ptr, int size)
{
unsigned long ret;
unsigned long ret = 0;

switch (size) {
case 1:
Expand Down Expand Up @@ -153,7 +153,7 @@ static inline void __percpu_write(void *ptr, unsigned long val, int size)
static inline unsigned long __percpu_xchg(void *ptr, unsigned long val,
int size)
{
unsigned long ret, loop;
unsigned long ret = 0, loop;

switch (size) {
case 1:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ static ssize_t store_low_battery_protect_ut(
int ret = 0;
char *pvalue = NULL;
unsigned int val = 0;
unsigned int thd;
unsigned int thd = 0;

pr_info("[%s]\n", __func__);

Expand Down

0 comments on commit 6ca2a8f

Please sign in to comment.