Skip to content

Commit dc764e5

Browse files
cfd-36Linus Torvalds
authored andcommitted
uml: formatting fixes around os_{read_write}_file callers
Formatting fixes ahead of renaming os_{read_write}_file_k to os_{read_write}_file and fixing all the callers. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent fda83a9 commit dc764e5

5 files changed

Lines changed: 89 additions & 120 deletions

File tree

‎arch/um/drivers/chan_user.c‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,3 @@ void register_winch(int fd, struct tty_struct *tty)
203203
}
204204
}
205205
}
206-
207-
/*
208-
* Overrides for Emacs so that we follow Linus's tabbing style.
209-
* Emacs will notice this stuff at the end of the file and automatically
210-
* adjust the settings for this buffer only. This must remain at the end
211-
* of the file.
212-
* ---------------------------------------------------------------------------
213-
* Local variables:
214-
* c-file-style: "linux"
215-
* End:
216-
*/

‎arch/um/drivers/cow_sys.h‎

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
static inline void *cow_malloc(int size)
1010
{
11-
return(um_kmalloc(size));
11+
return um_kmalloc(size);
1212
}
1313

1414
static inline void cow_free(void *ptr)
@@ -20,29 +20,22 @@ static inline void cow_free(void *ptr)
2020

2121
static inline char *cow_strdup(char *str)
2222
{
23-
return(uml_strdup(str));
23+
return uml_strdup(str);
2424
}
2525

2626
static inline int cow_seek_file(int fd, __u64 offset)
2727
{
28-
return(os_seek_file(fd, offset));
28+
return os_seek_file(fd, offset);
2929
}
3030

3131
static inline int cow_file_size(char *file, unsigned long long *size_out)
3232
{
33-
return(os_file_size(file, size_out));
33+
return os_file_size(file, size_out);
3434
}
3535

3636
static inline int cow_write_file(int fd, void *buf, int size)
3737
{
38-
return(os_write_file_k(fd, buf, size));
38+
return os_write_file_k(fd, buf, size);
3939
}
4040

4141
#endif
42-
43-
/*
44-
* ---------------------------------------------------------------------------
45-
* Local variables:
46-
* c-file-style: "linux"
47-
* End:
48-
*/

0 commit comments

Comments
 (0)