| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * TI FlashMedia driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2007 Alex Dubov <oakad@yahoo.com> |
|---|
| 5 | 6 | * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 8 | | - * published by the Free Software Foundation. |
|---|
| 9 | | - * |
|---|
| 10 | 7 | * Special thanks to Carlos Corbacho for providing various MemoryStick cards |
|---|
| 11 | 8 | * that made this driver possible. |
|---|
| 12 | | - * |
|---|
| 13 | 9 | */ |
|---|
| 14 | 10 | |
|---|
| 15 | 11 | #include <linux/tifm.h> |
|---|
| .. | .. |
|---|
| 166 | 162 | case 3: |
|---|
| 167 | 163 | host->io_word |= buf[off + 2] << 16; |
|---|
| 168 | 164 | host->io_pos++; |
|---|
| 165 | + fallthrough; |
|---|
| 169 | 166 | case 2: |
|---|
| 170 | 167 | host->io_word |= buf[off + 1] << 8; |
|---|
| 171 | 168 | host->io_pos++; |
|---|
| 169 | + fallthrough; |
|---|
| 172 | 170 | case 1: |
|---|
| 173 | 171 | host->io_word |= buf[off]; |
|---|
| 174 | 172 | host->io_pos++; |
|---|
| .. | .. |
|---|
| 200 | 198 | host->block_pos); |
|---|
| 201 | 199 | |
|---|
| 202 | 200 | while (length) { |
|---|
| 203 | | - unsigned int uninitialized_var(p_off); |
|---|
| 201 | + unsigned int p_off; |
|---|
| 204 | 202 | |
|---|
| 205 | 203 | if (host->req->long_data) { |
|---|
| 206 | 204 | pg = nth_page(sg_page(&host->req->sg), |
|---|
| .. | .. |
|---|
| 254 | 252 | static int tifm_ms_issue_cmd(struct tifm_ms *host) |
|---|
| 255 | 253 | { |
|---|
| 256 | 254 | struct tifm_dev *sock = host->dev; |
|---|
| 257 | | - unsigned char *data; |
|---|
| 258 | 255 | unsigned int data_len, cmd, sys_param; |
|---|
| 259 | 256 | |
|---|
| 260 | 257 | host->cmd_flags = 0; |
|---|
| .. | .. |
|---|
| 262 | 259 | host->io_pos = 0; |
|---|
| 263 | 260 | host->io_word = 0; |
|---|
| 264 | 261 | host->cmd_flags = 0; |
|---|
| 265 | | - |
|---|
| 266 | | - data = host->req->data; |
|---|
| 267 | 262 | |
|---|
| 268 | 263 | host->use_dma = !no_dma; |
|---|
| 269 | 264 | |
|---|