ath9k: remove unneeded calculation of minimal calibration power
[linux-2.6/next.git] / drivers / scsi / bfa / bfa_csdebug.c
blobcaeb1143a4e605c705d502e88cf422035d5b2c5f
1 /*
2 * Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
3 * All rights reserved
4 * www.brocade.com
6 * Linux driver for Brocade Fibre Channel Host Bus Adapter.
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License (GPL) Version 2 as
10 * published by the Free Software Foundation
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
18 #include <cs/bfa_debug.h>
19 #include <bfa_os_inc.h>
20 #include <cs/bfa_q.h>
21 #include <log/bfa_log_hal.h>
23 /**
24 * cs_debug_api
28 void
29 bfa_panic(int line, char *file, char *panicstr)
31 bfa_log(NULL, BFA_LOG_HAL_ASSERT, file, line, panicstr);
32 bfa_os_panic();
35 void
36 bfa_sm_panic(struct bfa_log_mod_s *logm, int line, char *file, int event)
38 bfa_log(logm, BFA_LOG_HAL_SM_ASSERT, file, line, event);
39 bfa_os_panic();
42 int
43 bfa_q_is_on_q_func(struct list_head *q, struct list_head *qe)
45 struct list_head *tqe;
47 tqe = bfa_q_next(q);
48 while (tqe != q) {
49 if (tqe == qe)
50 return 1;
51 tqe = bfa_q_next(tqe);
52 if (tqe == NULL)
53 break;
55 return 0;