git: 74b5dc9f3fcd - main - cam/xpt: style(9) no longer recommends blank lines
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 10 Jul 2025 23:05:05 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=74b5dc9f3fcd9eff142c0212dd738c676effdd4b
commit 74b5dc9f3fcd9eff142c0212dd738c676effdd4b
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2025-07-10 23:03:41 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-07-10 23:03:41 +0000
cam/xpt: style(9) no longer recommends blank lines
The new xpt_gdev_type() function shouldn't have had a blank line. It was
copied from xpt_path_inq(). Remove it from both.
Noticed by: jhb
Sponsored by: Netflix
---
sys/cam/cam_xpt.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys/cam/cam_xpt.h b/sys/cam/cam_xpt.h
index 3815f42cba40..efa6c823245a 100644
--- a/sys/cam/cam_xpt.h
+++ b/sys/cam/cam_xpt.h
@@ -151,7 +151,6 @@ void xpt_sim_poll(struct cam_sim *sim);
static inline void
xpt_path_inq(struct ccb_pathinq *cpi, struct cam_path *path)
{
-
bzero(cpi, sizeof(*cpi));
xpt_setup_ccb(&cpi->ccb_h, path, CAM_PRIORITY_NONE);
cpi->ccb_h.func_code = XPT_PATH_INQ;
@@ -165,7 +164,6 @@ xpt_path_inq(struct ccb_pathinq *cpi, struct cam_path *path)
static inline void
xpt_gdev_type(struct ccb_getdev *cgd, struct cam_path *path)
{
-
bzero(cgd, sizeof(*cgd));
xpt_setup_ccb(&cgd->ccb_h, path, CAM_PRIORITY_NONE);
cgd->ccb_h.func_code = XPT_GDEV_TYPE;