Don't repeat error logging about NOP message sending if
ciss_report_request() return an error (which is most likely data underrun). Noticed by: Mark Atkinson MFC after: 1 week
This commit is contained in:
parent
10882804c9
commit
0aeee4bd8a
@ -3133,10 +3133,14 @@ static void
|
||||
ciss_nop_complete(struct ciss_request *cr)
|
||||
{
|
||||
struct ciss_softc *sc;
|
||||
static int first_time = 1;
|
||||
|
||||
sc = cr->cr_sc;
|
||||
if (ciss_report_request(cr, NULL, NULL) != 0) {
|
||||
ciss_printf(sc, "SENDING NOP MESSAGE FAILED\n");
|
||||
if (first_time == 1) {
|
||||
first_time = 0;
|
||||
ciss_printf(sc, "SENDING NOP MESSAGE FAILED (not logging anymore)\n");
|
||||
}
|
||||
}
|
||||
|
||||
ciss_release_request(cr);
|
||||
|
Loading…
Reference in New Issue
Block a user