Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | From 1e5926df74a35fe2cd90bc59f5264a8715c94048 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 7 Sep 2015 08:16:59 +0000 |
| 4 | Subject: [PATCH] as10k1: Make output_tram_line() static inline |
| 5 | |
| 6 | The function is not used in any other file, its better to make it static |
| 7 | inline so compiler has a better chance of optimizing here |
| 8 | |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | --- |
| 11 | Upstream-Status: Pending |
| 12 | |
| 13 | as10k1/as10k1.c | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/as10k1/as10k1.c b/as10k1/as10k1.c |
| 17 | index 96af0c3..d0766fd 100644 |
| 18 | --- a/as10k1/as10k1.c |
| 19 | +++ b/as10k1/as10k1.c |
| 20 | @@ -366,7 +366,7 @@ void as_exit(const char *message) |
| 21 | exit(1); |
| 22 | } |
| 23 | |
| 24 | -inline void output_tram_line( struct list_head *line_head, int type){ |
| 25 | +static inline void output_tram_line( struct list_head *line_head, int type){ |
| 26 | |
| 27 | struct tram *tram_sym; |
| 28 | struct list_head *entry; |
| 29 | -- |
| 30 | 2.5.1 |
| 31 | |