mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
mtd: devices: elm: fix elm_context_save() and elm_context_restore() functions
These two function's switch case lack the 'break' that make them always return error. Signed-off-by: Ted Juan <[email protected]> Acked-by: Pekon Gupta <[email protected]> Cc: <[email protected]> # 3.12.x+ Signed-off-by: Brian Norris <[email protected]>
This commit is contained in:
parent
7171511eae
commit
6938ad40cb
1 changed files with 2 additions and 0 deletions
|
|
@ -475,6 +475,7 @@ static int elm_context_save(struct elm_info *info)
|
|||
ELM_SYNDROME_FRAGMENT_1 + offset);
|
||||
regs->elm_syndrome_fragment_0[i] = elm_read_reg(info,
|
||||
ELM_SYNDROME_FRAGMENT_0 + offset);
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
@ -520,6 +521,7 @@ static int elm_context_restore(struct elm_info *info)
|
|||
regs->elm_syndrome_fragment_1[i]);
|
||||
elm_write_reg(info, ELM_SYNDROME_FRAGMENT_0 + offset,
|
||||
regs->elm_syndrome_fragment_0[i]);
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue