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

Commit d0658a03 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "arm64: percpu: Initialize the ret variable for default case"

parents 0e75cda3 99836317
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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:								\
@@ -106,7 +106,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:
@@ -151,7 +151,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: