hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c
....@@ -1,24 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2003 - 2009 NetXen, Inc.
34 * Copyright (C) 2009 - QLogic Corporation.
45 * All rights reserved.
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License
8
- * as published by the Free Software Foundation; either version 2
9
- * of the License, or (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful, but
12
- * WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
18
- *
19
- * The full GNU General Public License is included in this distribution
20
- * in the file called "COPYING".
21
- *
226 */
237
248 #include "netxen_nic_hw.h"
....@@ -458,10 +442,8 @@
458442 goto out_free_rq;
459443 }
460444
461
- memset(rq_addr, 0, rq_size);
462445 prq = rq_addr;
463446
464
- memset(rsp_addr, 0, rsp_size);
465447 prsp = rsp_addr;
466448
467449 prq->host_rsp_dma_addr = cpu_to_le64(rsp_phys_addr);
....@@ -771,7 +753,6 @@
771753 return -ENOMEM;
772754 }
773755
774
- memset(addr, 0, sizeof(struct netxen_ring_ctx));
775756 recv_ctx->hwctx = addr;
776757 recv_ctx->hwctx->ctx_id = cpu_to_le32(port);
777758 recv_ctx->hwctx->cmd_consumer_offset =