浏览代码

drivers: char: misc: Replace "foo * bar" with "foo *bar".

Remove space after * in pointer type, to follow linux coding style. This
patch fixes the following checkpatch issue:

ERROR: "foo * bar" should be "foo *bar"

Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Varsha Rao 8 年之前
父节点
当前提交
65ebd3dfe7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/char/misc.c

+ 2 - 2
drivers/char/misc.c

@@ -109,7 +109,7 @@ static const struct file_operations misc_proc_fops = {
 };
 };
 #endif
 #endif
 
 
-static int misc_open(struct inode * inode, struct file * file)
+static int misc_open(struct inode *inode, struct file *file)
 {
 {
 	int minor = iminor(inode);
 	int minor = iminor(inode);
 	struct miscdevice *c;
 	struct miscdevice *c;
@@ -182,7 +182,7 @@ static const struct file_operations misc_fops = {
  *	failure.
  *	failure.
  */
  */
 
 
-int misc_register(struct miscdevice * misc)
+int misc_register(struct miscdevice *misc)
 {
 {
 	dev_t dev;
 	dev_t dev;
 	int err = 0;
 	int err = 0;