]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Minor cleanups in mmc_xpt.c
authorkibab <kibab@FreeBSD.org>
Tue, 4 Aug 2020 21:58:43 +0000 (21:58 +0000)
committerkibab <kibab@FreeBSD.org>
Tue, 4 Aug 2020 21:58:43 +0000 (21:58 +0000)
commit3cf4e111799bbfdc2f1f697bb2a2c90ffbe93f91
treec955cf9fc15cd68293706851679490aeaac75d85
parent7d3feaaa814d69703d4e13f71e2d6102c1aa1b59
Minor cleanups in mmc_xpt.c

 * Downgrade some CAM debug messages from _INFO to _DEBUG level;
 * Add KASSERT for the case when we suspect incorrect CAM SIM initialization (using cam_sim_alloc() instead of cam_sim_alloc_dev());
 * Use waiting version of xpt_alloc_ccb(), we are not in hurry;
 * With the waiting version we cannot get NULL return, so remove the NULL check;
 * In some csses, the name of mmcprobe_done has been written as mmc_probedone();
 * Send AC_LOST_DEVICE if we, well, lost the device;
 * Misc style(9) fixes.

Reviewed by: manu
Approved by: imp (mentor)
Differential Revision: https://reviews.freebsd.org/D25843
sys/cam/mmc/mmc_xpt.c