]> Git Repo - linux.git/commit
sgi-gru: decrapfiy options_write() function
authorLinus Torvalds <[email protected]>
Thu, 5 Nov 2009 18:48:30 +0000 (10:48 -0800)
committerLinus Torvalds <[email protected]>
Thu, 5 Nov 2009 18:48:30 +0000 (10:48 -0800)
commitd39b7dd1dcbf394a1cb897457c862dafe9a20ac5
tree2eebf445f1b61cf09abd62d5a2dc4a314f0d6803
parent91d3f9bacdb4950d2f79fe2ba296aa249f60d06c
sgi-gru: decrapfiy options_write() function

Not a single line of actual code in the function was really
fundamentally correct.

Problems ranged from lack of proper range checking, to removing the last
character written (which admittedly is usually '\n'), to not accepting
hex numbers even though the 'show' routine would show the data in that
format.

This tries to do better.

Acked-by: Michael Buesch <[email protected]>
Tested-and-acked-by: Jack Steiner <[email protected]>
Cc: [email protected]
Cc: Jiri Kosina <[email protected]>
Cc: Michael Gilbert <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/misc/sgi-gru/gruprocfs.c
This page took 0.053036 seconds and 4 git commands to generate.