From 32600e6dcb6a84ee78b880e36bbd172e6dc41c4b Mon Sep 17 00:00:00 2001 From: Yaakov Date: Sun, 11 Aug 2024 18:04:07 +1000 Subject: [PATCH] style --- scream.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/scream.c b/scream.c index bfbfeaf..b1ed151 100644 --- a/scream.c +++ b/scream.c @@ -36,20 +36,17 @@ static void __exit scream_module_exit(void) { printk(KERN_INFO "[scream] done.\n"); } -static int scream_device_open(struct inode *inode, struct file *file) -{ +static int scream_device_open(struct inode *inode, struct file *file) { printk(KERN_INFO "[scream] Device open\n"); return 0; } -static int scream_device_release(struct inode *inode, struct file *file) -{ +static int scream_device_release(struct inode *inode, struct file *file) { printk(KERN_INFO "[scream] Device close\n"); return 0; } -static ssize_t scream_device_read(struct file *file, char __user *buf, size_t count, loff_t *offset) -{ +static ssize_t scream_device_read(struct file *file, char __user *buf, size_t count, loff_t *offset) { uint8_t rand; for (size_t i = 0; i < count; i++)