Commit 3d3af6af authored by Ioana Ciornei's avatar Ioana Ciornei Committed by Greg Kroah-Hartman

drivers: base: memory: Fix switch indent

Signed-off-by: default avatarIoana Ciornei <ciorneiioana@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2e4fabec
...@@ -152,20 +152,20 @@ static ssize_t show_mem_state(struct device *dev, ...@@ -152,20 +152,20 @@ static ssize_t show_mem_state(struct device *dev,
* so that they're not open-coded * so that they're not open-coded
*/ */
switch (mem->state) { switch (mem->state) {
case MEM_ONLINE: case MEM_ONLINE:
len = sprintf(buf, "online\n"); len = sprintf(buf, "online\n");
break; break;
case MEM_OFFLINE: case MEM_OFFLINE:
len = sprintf(buf, "offline\n"); len = sprintf(buf, "offline\n");
break; break;
case MEM_GOING_OFFLINE: case MEM_GOING_OFFLINE:
len = sprintf(buf, "going-offline\n"); len = sprintf(buf, "going-offline\n");
break; break;
default: default:
len = sprintf(buf, "ERROR-UNKNOWN-%ld\n", len = sprintf(buf, "ERROR-UNKNOWN-%ld\n",
mem->state); mem->state);
WARN_ON(1); WARN_ON(1);
break; break;
} }
return len; return len;
...@@ -232,19 +232,19 @@ memory_block_action(unsigned long phys_index, unsigned long action, int online_t ...@@ -232,19 +232,19 @@ memory_block_action(unsigned long phys_index, unsigned long action, int online_t
first_page = pfn_to_page(start_pfn); first_page = pfn_to_page(start_pfn);
switch (action) { switch (action) {
case MEM_ONLINE: case MEM_ONLINE:
if (!pages_correctly_reserved(start_pfn)) if (!pages_correctly_reserved(start_pfn))
return -EBUSY; return -EBUSY;
ret = online_pages(start_pfn, nr_pages, online_type); ret = online_pages(start_pfn, nr_pages, online_type);
break; break;
case MEM_OFFLINE: case MEM_OFFLINE:
ret = offline_pages(start_pfn, nr_pages); ret = offline_pages(start_pfn, nr_pages);
break; break;
default: default:
WARN(1, KERN_WARNING "%s(%ld, %ld) unknown action: " WARN(1, KERN_WARNING "%s(%ld, %ld) unknown action: "
"%ld\n", __func__, phys_index, action, action); "%ld\n", __func__, phys_index, action, action);
ret = -EINVAL; ret = -EINVAL;
} }
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment