git: 37d97b10ff0e - main - Fix style.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 07 Apr 2023 03:19:55 UTC
The branch main has been updated by ganbold: URL: https://cgit.FreeBSD.org/src/commit/?id=37d97b10ff0e56890ac4985a02092c3e6db71c2d commit 37d97b10ff0e56890ac4985a02092c3e6db71c2d Author: Ganbold Tsagaankhuu <ganbold@FreeBSD.org> AuthorDate: 2023-04-07 03:18:42 +0000 Commit: Ganbold Tsagaankhuu <ganbold@FreeBSD.org> CommitDate: 2023-04-07 03:18:42 +0000 Fix style. --- sys/arm64/rockchip/rk3568_pciephy.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/arm64/rockchip/rk3568_pciephy.c b/sys/arm64/rockchip/rk3568_pciephy.c index d56675521841..91993bf69890 100644 --- a/sys/arm64/rockchip/rk3568_pciephy.c +++ b/sys/arm64/rockchip/rk3568_pciephy.c @@ -206,8 +206,7 @@ rk3568_pciephy_attach(device_t dev) /* Get & assert reset */ if (hwreset_get_by_ofw_idx(dev, sc->node, 0, &sc->phy_reset)) { device_printf(dev, "Cannot get reset\n"); - } - else + } else hwreset_assert(sc->phy_reset); /* Set RC/EP mode not implemented yet (RC mode only) */ @@ -216,8 +215,7 @@ rk3568_pciephy_attach(device_t dev) if (OF_hasprop(sc->node, "data-lanes")) { OF_getencprop(sc->node, "data-lanes", data_lanes, sizeof(data_lanes)); - } - else + } else if (bootverbose) device_printf(dev, "lane 1 & 2 @pcie3x2\n");