Don't check return from xpt_alloc_ccb() for being NULL; since it's not
the _nowait wariant, it cannot fail. Suggested by: mav MFC after: 2 weeks Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc.
This commit is contained in:
parent
2ef735f477
commit
3bd46ad76d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367951
@ -2008,15 +2008,10 @@ hpt_attach(device_t dev)
|
||||
}
|
||||
|
||||
|
||||
if ((ccb = xpt_alloc_ccb()) != NULL)
|
||||
{
|
||||
ccb->ccb_h.pinfo.priority = 1;
|
||||
ccb->ccb_h.pinfo.index = CAM_UNQUEUED_INDEX;
|
||||
}
|
||||
else
|
||||
{
|
||||
return ENOMEM;
|
||||
}
|
||||
ccb = xpt_alloc_ccb();
|
||||
ccb->ccb_h.pinfo.priority = 1;
|
||||
ccb->ccb_h.pinfo.index = CAM_UNQUEUED_INDEX;
|
||||
|
||||
/*
|
||||
* Create the device queue for our SIM(s).
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user