Commit c2ba2ff51101cdcfabdc0bdc961e37cc51cb7d23

Authored by Gerlando Falauto
Committed by Tom Rini
1 parent 8ae51ae172

env: cosmetic: drop assignment i = iomux_doenv()

iomux_doenv() can only return 0 or 1.
So there is no need to save its return value in variable i, as checking
its truth value within an if statement is enough.

Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
Reviewed-by: Marek Vasut <marex@denx.de>

Showing 1 changed file with 2 additions and 3 deletions Side-by-side Diff

... ... @@ -239,9 +239,8 @@
239 239 }
240 240  
241 241 #ifdef CONFIG_CONSOLE_MUX
242   - i = iomux_doenv(console, argv[2]);
243   - if (i)
244   - return i;
  242 + if (iomux_doenv(console, argv[2]))
  243 + return 1;
245 244 #else
246 245 /* Try assigning specified device */
247 246 if (console_assign(console, argv[2]) < 0)