Skip to content

floppy.c: first round of cleanup patches - the simple stuff

Jesper Juhl lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/25 patches 8 repliesIn review
  2. v1 posting 1/25 patches 8 repliesSuperseded

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5floppy.c: Initial (partial) CodingStyle cleanupdrivers/block/floppy.c+6 -44 replies
2/5floppy.c: Remove pointless register keywordsdrivers/block/floppy.c+2 -20 replies
3/5floppy.c: Remove dead/commented out codedrivers/block/floppy.c+0 -240 replies
4/5floppy.c: Add explicit/better printk() levelsdrivers/block/floppy.c+64 -550 replies
5/5floppy.c: Fix device_create_file() warningdrivers/block/floppy.c+6 -14 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchAlan CoxBartlomiej Zolnierkiewicz
1/5A-b A-b
2/5A-b A-b
3/5A-b A-b
4/5A-b A-b
5/5A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH][0/5][resend] floppy.c: first round of cleanup patches - the simple stuff

Greetings people,

A while back I promised to do some floppy.c cleanups and created an initial set of patches. Those patches got some good feedback but never got merged. I want to continue with more substantial cleanups, but it would be nice to get the initial (rather trivial) bits in first so I can submit further patches on top.

I've been using these patches myself without any problems and they have also been Ack'ed by a few people;
Alan Cox said:
"Acked-by: Alan Cox <[email protected]>
for the set of 5 patches. Its a beginning and removing the dead wood so you can see what is actually there is a good a beginning as any other."
Bartlomiej Zolnierkiewicz said:
"Seconded, looks like a good beginning.
You may also add my ACK for the whole set."

Andi Kleen commented that the real problem with floppy.c is the basic code logic and that most of the code I'm fixing up here probably has to be replaced later anyway - there's no doubt that's correct, but I need to start somewhere and starting with these small patches makes the file a lot easier for me to work with and I think they are a nice little initial cleanup until I get a chance to do something more substantial (which probably won't be for another month and a half since I'm currently without internet connectivity at home).

There are 5 patches in this series. They are based on current Linus -git and are incremental.

These are the patches (they'll be posted to the same recipients as this mail) :

[PATCH][1/5][resend] floppy.c: Initial (partial) CodingStyle cleanup [PATCH][2/5][resend] floppy.c: Remove pointless register keywords [PATCH][3/5][resend] floppy.c: Remove dead/commented out code [PATCH][4/5][resend] floppy.c: Add explicit/better printk() levels [PATCH][5/5][resend] floppy.c: Fix device_create_file() warning

The Cc list is composed of people who expressed interrest in this cleanup + people who look like original authors of the code (for whom I could locate email addresses) etc.

Andrew: Could you please merge these into -mm? And if you could push them to Linus after a bit of time in -mm that would be greatly appreciated as well.

Kind regards,

Jesper Juhl <[email protected]>