hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/scsi/wd33c93.c
....@@ -1,17 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (c) 1996 John Shifflett, GeoLog Consulting
34 * john@geolog.com
45 * jshiffle@netcom.com
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2, or (at your option)
9
- * any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but 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.
156 */
167
178 /*
....@@ -744,7 +735,7 @@
744735 * source or destination for THIS transfer.
745736 */
746737 if (!cmd->SCp.this_residual && cmd->SCp.buffers_residual) {
747
- ++cmd->SCp.buffer;
738
+ cmd->SCp.buffer = sg_next(cmd->SCp.buffer);
748739 --cmd->SCp.buffers_residual;
749740 cmd->SCp.this_residual = cmd->SCp.buffer->length;
750741 cmd->SCp.ptr = sg_virt(cmd->SCp.buffer);
....@@ -1863,6 +1854,7 @@
18631854 case 1: --x;
18641855 break;
18651856 case 2: ++x;
1857
+ fallthrough;
18661858 case 3: ++x;
18671859 }
18681860 return x;