mtk: Initialize mask correctly.

Initialization of mask is missing. Fixes a compile issue.

Reviewed by:	imp@
Pull Request:	https://github.com/freebsd/freebsd-src/pull/459
This commit is contained in:
Priit Trees 2021-06-11 14:12:08 -06:00 committed by Warner Losh
parent b0e54e61b3
commit 768787bee3

View File

@ -123,6 +123,8 @@ mtk_clock_get_info(device_t dev, int index, struct fdt_clock_info *info)
if (index < 0 || index > 31 || info == NULL)
return (EINVAL);
mask = (1u << index);
if (mtk_sysctl_get(SYSCTL_CLKCFG1) & mask)
info->flags = FDT_CIFLAG_RUNNING;
else