Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] Floppy: add cmos attribute to floppy driver tidy

Fiddle with coding style a bit.

Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Andrew Morton and committed by
Greg Kroah-Hartman
9a8af6b3 94fd0db7

+7 -8
+7 -8
drivers/block/floppy.c
··· 4193 4193 4194 4194 static int have_no_fdc = -ENODEV; 4195 4195 4196 - static ssize_t floppy_cmos_show(struct device *dev, struct device_attribute *attr, char *buf) 4196 + static ssize_t floppy_cmos_show(struct device *dev, 4197 + struct device_attribute *attr, char *buf) 4197 4198 { 4198 - struct platform_device *p = container_of(dev,struct platform_device,dev); 4199 - int drive = p->id; 4200 - ssize_t retval; 4199 + struct platform_device *p; 4200 + int drive; 4201 4201 4202 - retval = sprintf(buf,"%X\n", UDP->cmos); 4203 - 4204 - return retval; 4202 + p = container_of(dev, struct platform_device,dev); 4203 + drive = p->id; 4204 + return sprintf(buf, "%X\n", UDP->cmos); 4205 4205 } 4206 - 4207 4206 DEVICE_ATTR(cmos,S_IRUGO,floppy_cmos_show,NULL); 4208 4207 4209 4208 static void floppy_device_release(struct device *dev)