From: Christoph Hellwig Date: Fri, 24 Mar 2006 11:15:20 +0000 (-0800) Subject: [PATCH] s390: use normal switch statement for ioctls in dasd_ioctlc X-Git-Tag: v2.6.17-rc1~971 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1107ccfbdef280fedc677af3bdbc405611ba554a;p=pandora-kernel.git [PATCH] s390: use normal switch statement for ioctls in dasd_ioctlc Add an ->ioctl method to the dasd_discipline structure. This allows to apply the same kind of cleanups the last patch applied to dasd_ioctl.c to dasd_eckd.c (the only dasd discipline with special ioctls) aswell. Again lots of code removed. During auditing the ioctls I found two fishy return value propagations from copy_{from,to}_user, maintainers please check those, I've marked them with XXX comments. Signed-off-by: Christoph Hellwig Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed