mount_root: fix compilation error for wrong condition
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 15 Jan 2024 16:28:07 +0000 (17:28 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 15 Jan 2024 16:28:07 +0000 (17:28 +0100)
commit325d63d67006c5526ab9b0fbc62329da48aa93af
tree2fa579454d2bb145e5a21c301315438017ca4bea
parent1858a492c300a0066a91f8096a858231c3cbd246
mount_root: fix compilation error for wrong condition

While reworking this to new implementation, a broken and old commit
slipped in by mistake.

Fix compilation error for wrong condition.

mount_root.c: In function 'main':
mount_root.c:131:23: error: expected expression before '||' token
  131 |         if (argc < 2) || (!strcmp(argv[1], "start"))
      |                       ^~
mount_root.c: At top level:
mount_root.c:31:1: error: 'start' defined but not used [-Werror=unused-function]
   31 | start(int argc, char *argv[3])
      | ^~~~~
cc1: all warnings being treated as errors

Fixes: 1a5695925ecf ("mount_root: add support for passing args to mount_root start")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
mount_root.c