9
0
Fork 0

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:
Marek Belisko 2010-11-18 14:29:28 +01:00 committed by Sascha Hauer
parent 7e7ca7cb3a
commit a894660cf1
1 changed files with 1 additions and 1 deletions

View File

@ -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);