conf: revert last change and annotate unused var instead
This commit is contained in:
parent
1c0336c1c1
commit
6fa5abfdda
@ -866,13 +866,11 @@ make_dev(struct cdevsw *devsw, int unit, uid_t uid, gid_t gid, int mode,
|
||||
{
|
||||
struct cdev *dev;
|
||||
va_list ap;
|
||||
#ifdef INVARIANTS
|
||||
int res;
|
||||
#endif
|
||||
int res __unused;
|
||||
|
||||
va_start(ap, fmt);
|
||||
DBGSET(res, make_dev_credv(0, &dev, devsw, unit, NULL, uid, gid, mode, fmt,
|
||||
ap));
|
||||
res = make_dev_credv(0, &dev, devsw, unit, NULL, uid, gid, mode, fmt,
|
||||
ap);
|
||||
va_end(ap);
|
||||
KASSERT(res == 0 && dev != NULL,
|
||||
("make_dev: failed make_dev_credv (error=%d)", res));
|
||||
@ -885,12 +883,10 @@ make_dev_cred(struct cdevsw *devsw, int unit, struct ucred *cr, uid_t uid,
|
||||
{
|
||||
struct cdev *dev;
|
||||
va_list ap;
|
||||
#ifdef INVARIANTS
|
||||
int res;
|
||||
#endif
|
||||
int res __unused;
|
||||
|
||||
va_start(ap, fmt);
|
||||
DBGSET(res, make_dev_credv(0, &dev, devsw, unit, cr, uid, gid, mode, fmt, ap));
|
||||
res = make_dev_credv(0, &dev, devsw, unit, cr, uid, gid, mode, fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
KASSERT(res == 0 && dev != NULL,
|
||||
@ -1000,11 +996,10 @@ make_dev_alias(struct cdev *pdev, const char *fmt, ...)
|
||||
{
|
||||
struct cdev *dev;
|
||||
va_list ap;
|
||||
#ifdef INVARIANTS
|
||||
int res;
|
||||
#endif
|
||||
int res __unused;
|
||||
|
||||
va_start(ap, fmt);
|
||||
DBGSET(res, make_dev_alias_v(MAKEDEV_WAITOK, &dev, pdev, fmt, ap));
|
||||
res = make_dev_alias_v(MAKEDEV_WAITOK, &dev, pdev, fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
KASSERT(res == 0 && dev != NULL,
|
||||
|
Loading…
x
Reference in New Issue
Block a user