fs: Fix bug found by sparse.
Patch fix following sparse warning: fs/fs.c:757:28: warning: dubious: !x & y Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
7e7ca7cb3a
commit
a894660cf1
2
fs/fs.c
2
fs/fs.c
|
@ -754,7 +754,7 @@ int mount(const char *device, const char *fsname, const char *_path)
|
|||
}
|
||||
|
||||
fsdev = xzalloc(sizeof(struct fs_device_d));
|
||||
if (!fs_drv->flags & FS_DRIVER_NO_DEV) {
|
||||
if (!(fs_drv->flags & FS_DRIVER_NO_DEV)) {
|
||||
fsdev->backingstore = strdup(device);
|
||||
if (!device) {
|
||||
printf("need a device for driver %s\n", fsname);
|
||||
|
|
Loading…
Reference in New Issue