ataflop: use a statically allocated error counters
authorWilly Tarreau <w@1wt.eu>
Sun, 8 May 2022 09:37:08 +0000 (11:37 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 8 May 2022 17:01:48 +0000 (10:01 -0700)
commitf3b10a3c22c6a5f1d623b70eca2b4d1efafccd71
treed8c20ad714e236562cfe2cc5af9243e3a38d3051
parentf71f01394f742fc4558b3f9f4c7ef4c4cf3b07c8
ataflop: use a statically allocated error counters

This is the last driver making use of fd_request->error_count, which is
easy to get wrong as was shown in floppy.c.  We don't need to keep it
there, it can be moved to the atari_floppy_struct instead, so let's do
this.

Suggested-by: Linus Torvalds <torvalds@linuxfoundation.org>
Cc: Minh Yuan <yuanmingbuaa@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/ataflop.c