]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Minor cleanups in mmc_xpt.c
authorIlya Bakulin <kibab@FreeBSD.org>
Tue, 4 Aug 2020 21:58:43 +0000 (21:58 +0000)
committerIlya Bakulin <kibab@FreeBSD.org>
Tue, 4 Aug 2020 21:58:43 +0000 (21:58 +0000)
commit9ea72650667f023faf33c2cfb6a9389abba37178
treec955cf9fc15cd68293706851679490aeaac75d85
parent0bc1c0786b26b9ec564a463bacddb66793f75aa0
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