Commit ace2fb5a authored by Colin King's avatar Colin King Committed by Thomas Gleixner

x86/boot/e820: Remove a redundant self assignment

Remove a redundant self assignment of table->nr_entries, it does
nothing and is an artifact of code simplification re-work.

Detected by CoverityScan, CID#1428450 ("Self assignment")

Fixes: 441ac2f3 ("x86/boot/e820: Simplify e820__update_table()")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Cc: kernel-janitors@vger.kernel.org
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Link: http://lkml.kernel.org/r/20170413155912.12078-1-colin.king@canonical.comSigned-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 84bbabc3
...@@ -270,7 +270,6 @@ int __init e820__update_table(struct e820_table *table) ...@@ -270,7 +270,6 @@ int __init e820__update_table(struct e820_table *table)
if (table->nr_entries < 2) if (table->nr_entries < 2)
return -1; return -1;
table->nr_entries = table->nr_entries;
BUG_ON(table->nr_entries > max_nr_entries); BUG_ON(table->nr_entries > max_nr_entries);
/* Bail out if we find any unreasonable addresses in the map: */ /* Bail out if we find any unreasonable addresses in the map: */
......
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