Commit 0c0f981d authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Federico Vaga

zio-sys.c: "resolution-bits" attribute is not mandatory

This removes the annyoing message about the missing attribute.  Simple
driver can choose to not have attributes at all, which simplifies
source code, so the core should better not complain about them.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
Acked-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 67428e2e
......@@ -1645,8 +1645,7 @@ static uint16_t __get_nbits(struct zio_channel *chan)
if (zdev->zattr_set.std_zattr[ZIO_ATTR_NBITS].value)
return zdev->zattr_set.std_zattr[ZIO_ATTR_NBITS].value;
pr_warn("%s: device \"%s\" lacks \"resolution bit\" attribute\n",
__func__, chan->cset->zdev->head.name);
/* The attr. is optional, so devices with no attributes are allowed */
return chan->cset->ssize * BITS_PER_BYTE;
}
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment