open-isns: Fix warnings reported by gcc-4.5.2
[open-iscsi.git] / usr / cxgbi.c
blob4f3d1db7cff97c2f877275dfc958b216bf01ad6c
1 /*
2 * cxgb3i/cxgb4i helpers
4 * Copyright (C) 2006 Mike Christie
5 * Copyright (C) 2006 Red Hat, Inc. All rights reserved.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published
9 * by the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
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.
17 #include "initiator.h"
19 void cxgbi_create_conn(struct iscsi_conn *conn)
21 /* card can handle up to 15360 bytes */
22 if (conn->max_recv_dlength > 8192)
23 conn->max_recv_dlength = 8192;