Commit 879f1bec authored by Seth Jennings's avatar Seth Jennings Committed by Greg Kroah-Hartman
Browse files

drivers: base: remove unneeded variable

The error variable is not needed.
Signed-off-by: default avatarSeth Jennings <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent b1eaef3d
......@@ -565,16 +565,13 @@ static const struct attribute_group *memory_memblk_attr_groups[] = {
int register_memory(struct memory_block *memory)
int error;
memory->dev.bus = &memory_subsys;
memory-> = memory->start_section_nr / sections_per_block;
memory->dev.release = memory_block_release;
memory->dev.groups = memory_memblk_attr_groups;
memory->dev.offline = memory->state == MEM_OFFLINE;
error = device_register(&memory->dev);
return error;
return device_register(&memory->dev);
static int init_memory_block(struct memory_block **memory,
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