Remove icl_conn_connected(); was unused.

MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Edward Tomasz Napierala 2015-04-04 22:11:38 +00:00
parent 7defa9a75c
commit aca050aaaa
3 changed files with 0 additions and 31 deletions

View File

@ -82,10 +82,6 @@ METHOD void close {
struct icl_conn *_ic;
};
METHOD bool connected {
struct icl_conn *_ic;
};
METHOD int task_setup {
struct icl_conn *_ic;
struct ccb_scsiio *_csio;

View File

@ -97,7 +97,6 @@ static icl_conn_pdu_queue_t icl_soft_conn_pdu_queue;
static icl_conn_handoff_t icl_soft_conn_handoff;
static icl_conn_free_t icl_soft_conn_free;
static icl_conn_close_t icl_soft_conn_close;
static icl_conn_connected_t icl_soft_conn_connected;
static icl_conn_task_setup_t icl_soft_conn_task_setup;
static icl_conn_task_done_t icl_soft_conn_task_done;
static icl_conn_transfer_setup_t icl_soft_conn_transfer_setup;
@ -114,7 +113,6 @@ static kobj_method_t icl_soft_methods[] = {
KOBJMETHOD(icl_conn_handoff, icl_soft_conn_handoff),
KOBJMETHOD(icl_conn_free, icl_soft_conn_free),
KOBJMETHOD(icl_conn_close, icl_soft_conn_close),
KOBJMETHOD(icl_conn_connected, icl_soft_conn_connected),
KOBJMETHOD(icl_conn_task_setup, icl_soft_conn_task_setup),
KOBJMETHOD(icl_conn_task_done, icl_soft_conn_task_done),
KOBJMETHOD(icl_conn_transfer_setup, icl_soft_conn_transfer_setup),
@ -1425,24 +1423,6 @@ icl_soft_conn_close(struct icl_conn *ic)
ICL_CONN_UNLOCK(ic);
}
bool
icl_soft_conn_connected(struct icl_conn *ic)
{
ICL_CONN_LOCK_ASSERT_NOT(ic);
ICL_CONN_LOCK(ic);
if (ic->ic_socket == NULL) {
ICL_CONN_UNLOCK(ic);
return (false);
}
if (ic->ic_socket->so_error != 0) {
ICL_CONN_UNLOCK(ic);
return (false);
}
ICL_CONN_UNLOCK(ic);
return (true);
}
int
icl_soft_conn_task_setup(struct icl_conn *ic, struct ccb_scsiio *csio,
uint32_t *task_tagp, void **prvp)

View File

@ -105,13 +105,6 @@ icl_conn_close(struct icl_conn *ic)
ICL_CONN_CLOSE(ic);
}
static inline bool
icl_conn_connected(struct icl_conn *ic)
{
return (ICL_CONN_CONNECTED(ic));
}
static inline int
icl_conn_task_setup(struct icl_conn *ic, struct ccb_scsiio *csio,
uint32_t *task_tagp, void **prvp)