btrfs-progs: image: fix bogus check after cpu on-line detection
authorDavid Sterba <dsterba@suse.com>
Fri, 30 Oct 2015 14:34:55 +0000 (15:34 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 2 Nov 2015 14:10:14 +0000 (15:10 +0100)
commit4f42e465cb060115e967f8097d9b63aaf65d08e4
treea113a3602ce6d6754c256b4b691a26031fa3ecc1
parentc9bddcacbc6cad10e65a305e9382648346bbe896
btrfs-progs: image: fix bogus check after cpu on-line detection

Comparing unsigned type for <= 0 does not make much sense, we should
really check the signed value returned by sysconf.

Resolves-coverity-id: 1324536
Signed-off-by: David Sterba <dsterba@suse.com>
btrfs-image.c