From: Lennart Poettering Date: Wed, 26 Feb 2014 02:46:04 +0000 (+0100) Subject: mount: minor modernization X-Git-Tag: v211~195 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=dd7a22a990023f083ef488177fb46c9c4667009b;p=elogind.git mount: minor modernization --- diff --git a/src/core/mount.c b/src/core/mount.c index 814674a02..b35e50787 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -1479,9 +1479,10 @@ static int mount_add_one( } } - if (!(w = strdup(what)) || - !(o = strdup(options)) || - !(f = strdup(fstype))) { + w = strdup(what); + o = strdup(options); + f = strdup(fstype); + if (!w || !o || !f) { r = -ENOMEM; goto fail; }