hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/crypto/nx/nx-842.c
....@@ -1,15 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Cryptographic API for the NX-842 hardware compression.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation; either version 2 of the License, or
7
- * (at your option) any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
134 *
145 * Copyright (C) IBM Corporation, 2011-2015
156 *
....@@ -353,7 +344,7 @@
353344 unsigned int adj_slen = slen;
354345 u8 *src = p->in, *dst = p->out;
355346 u16 padding = be16_to_cpu(g->padding);
356
- int ret, spadding = 0, dpadding = 0;
347
+ int ret, spadding = 0;
357348 ktime_t timeout;
358349
359350 if (!slen || !required_len)
....@@ -413,7 +404,6 @@
413404 spadding = 0;
414405 dst = p->out;
415406 dlen = p->oremain;
416
- dpadding = 0;
417407 if (dlen < required_len) { /* have ignore bytes */
418408 dst = ctx->dbounce;
419409 dlen = BOUNCE_BUFFER_SIZE;