freebsd-nq/sys/dev/smartpqi
Warner Losh 30f8afd027 cam: fix xpt_bus_register and xpt_bus_deregister return errno
xpt_bus_register and xpt_bus_deregister returns a hybrid error that's
neither a cam_status, nor an errno, but a mix of both.  Update
xpt_bus_register and xpt_bus_deregister to return an errno. The vast
majority of current users compare against zero, which can also be
spelled CAM_SUCCESS. Nobody uses CAM_FAILURE, so remove that symbol
to prevent comfusion (nothing returns it either).

Where the return value is saved, ensure that the variable 'error' is
used to store an errno and 'status' is used to store a cam_status where
it makes the code clearer (usually just in functions that already mix
and match). Where the return value isn't used at all, avoid storing it
at all.

Reviewed by:		scottl@, mav@ (earlier version)
Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D30860
2021-06-28 16:13:03 -06:00
..
smartpqi_cam.c cam: fix xpt_bus_register and xpt_bus_deregister return errno 2021-06-28 16:13:03 -06:00
smartpqi_cmd.c Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00
smartpqi_defines.h Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00
smartpqi_discovery.c Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00
smartpqi_event.c Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00
smartpqi_helper.c Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00
smartpqi_includes.h Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00
smartpqi_init.c Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00
smartpqi_intr.c Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00
smartpqi_ioctl.c Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00
smartpqi_ioctl.h Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00
smartpqi_main.c Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00
smartpqi_mem.c Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00
smartpqi_misc.c Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00
smartpqi_prototypes.h smartpqi: Remove stray declaration 2021-06-03 17:45:27 -06:00
smartpqi_queue.c Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00
smartpqi_request.c Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00
smartpqi_response.c Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00
smartpqi_sis.c Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00
smartpqi_structures.h Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00
smartpqi_tag.c Newly added features and bug fixes in latest Microchip SmartPQI driver 2021-05-28 16:40:23 -06:00