mirror of https://gitee.com/openkylin/linux.git
staging: ion: Align cases with switch
The preferred indentation for cases and switches has the cases at the same level as the switch. Signed-off-by: Christopher H. Pezley <chris@pezley.net> Acked-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
23f389384b
commit
ee928cb013
|
@ -58,15 +58,15 @@ static int ion_setup_heap_common(struct platform_device *parent,
|
|||
int ret = 0;
|
||||
|
||||
switch (heap->type) {
|
||||
case ION_HEAP_TYPE_CARVEOUT:
|
||||
case ION_HEAP_TYPE_CHUNK:
|
||||
if (heap->base && heap->size)
|
||||
return 0;
|
||||
case ION_HEAP_TYPE_CARVEOUT:
|
||||
case ION_HEAP_TYPE_CHUNK:
|
||||
if (heap->base && heap->size)
|
||||
return 0;
|
||||
|
||||
ret = of_reserved_mem_device_init(heap->priv);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
ret = of_reserved_mem_device_init(heap->priv);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue