Himanshu Jha
317049204c
mwifiex: Use put_unaligned_le32
...
Use put_unaligned_le32 rather than using byte ordering function and
memcpy which makes code clear.
Also, add the header file where it is declared.
Done using Coccinelle and semantic patch used is :
@ rule1 @
identifier tmp; expression ptr,x; type T;
@@
- tmp = cpu_to_le32(x);
<+... when != tmp
- memcpy(ptr, (T)&tmp, ...);
+ put_unaligned_le32(x,ptr);
...+>
@ depends on rule1 @
type j; identifier tmp;
@@
- j tmp;
...when != tmp
Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com >
Signed-off-by: Kalle Valo <kvalo@codeaurora.org >
2017-10-13 12:39:49 +03:00
..
2017-09-14 11:59:30 +02:00
2017-09-01 09:22:50 +02:00
2017-09-06 22:41:21 -07:00
2017-09-16 10:58:48 -07:00
2017-10-13 12:37:21 +03:00
2017-09-12 20:03:53 -07:00
2017-09-10 20:40:00 -07:00
2017-09-14 11:59:30 +02:00
2017-09-13 11:04:14 -07:00
2017-09-15 20:43:33 -07:00
2017-09-14 11:59:30 +02:00
2017-09-15 20:43:33 -07:00
2017-09-07 14:03:05 -07:00
2017-09-14 13:43:16 -07:00
2017-09-07 14:03:05 -07:00
2017-09-14 11:59:30 +02:00
2017-09-07 13:51:13 -07:00
2017-09-15 17:52:52 -07:00
2017-09-07 12:53:14 -07:00
2017-09-07 09:25:15 -07:00
2017-09-14 11:59:30 +02:00
2017-09-14 17:34:43 +02:00
2017-09-07 11:59:42 -07:00
2017-09-05 12:19:08 -07:00
2017-09-07 13:51:13 -07:00
2017-09-13 18:53:15 -07:00
2017-09-16 11:24:26 -07:00
2017-09-09 15:03:24 -07:00
2017-09-15 20:43:33 -07:00
2017-09-07 20:03:54 -07:00
2017-09-14 11:59:30 +02:00
2017-09-01 16:42:54 +10:00
2017-09-07 13:23:37 -07:00
2017-09-05 11:08:17 -07:00
2017-09-14 13:43:16 -07:00
2017-09-14 18:13:32 -07:00
2017-09-10 20:40:00 -07:00
2017-09-14 11:59:30 +02:00
2017-09-13 18:53:16 -07:00
2017-09-01 15:31:01 +02:00
2017-09-16 12:08:10 -07:00
2017-10-13 12:39:49 +03:00
2017-09-14 13:43:16 -07:00
2017-09-11 12:29:40 -04:00
2017-09-12 13:30:06 -07:00
2017-09-05 11:08:17 -07:00
2017-09-15 01:33:51 -05:00
2017-09-15 20:43:33 -07:00
2017-09-12 15:58:45 +02:00
2017-09-14 11:59:30 +02:00
2017-09-14 11:59:30 +02:00
2017-09-09 14:44:39 -07:00
2017-09-08 18:26:51 -07:00
2017-09-11 13:04:32 -07:00
2017-09-07 13:51:13 -07:00
2017-09-09 14:34:38 -07:00
2017-09-15 20:43:33 -07:00
2017-09-04 10:52:30 -07:00
2017-09-13 10:56:00 -07:00
2017-09-12 06:01:59 -07:00
2017-09-13 10:47:14 -07:00
2017-09-15 20:43:33 -07:00
2017-09-05 12:45:03 -07:00
2017-09-14 18:54:01 -07:00
2017-09-14 18:13:32 -07:00
2017-09-08 11:20:04 +08:00
2017-09-05 12:45:03 -07:00
2017-09-14 11:59:30 +02:00
2017-09-14 18:13:32 -07:00
2017-09-08 18:26:49 -07:00
2017-09-14 13:33:33 -07:00
2017-09-07 21:11:05 -07:00
2017-09-09 14:44:39 -07:00
2017-09-15 20:43:33 -07:00
2017-09-13 18:53:16 -07:00