File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -186,13 +186,11 @@ NOKPROBE_SYMBOL(patch_insn_set);
186
186
187
187
int patch_text_set_nosync (void * addr , u8 c , size_t len )
188
188
{
189
- u32 * tp = addr ;
190
189
int ret ;
191
190
192
- ret = patch_insn_set (tp , c , len );
193
-
191
+ ret = patch_insn_set (addr , c , len );
194
192
if (!ret )
195
- flush_icache_range ((uintptr_t )tp , (uintptr_t )tp + len );
193
+ flush_icache_range ((uintptr_t )addr , (uintptr_t )addr + len );
196
194
197
195
return ret ;
198
196
}
@@ -224,13 +222,11 @@ NOKPROBE_SYMBOL(patch_insn_write);
224
222
225
223
int patch_text_nosync (void * addr , const void * insns , size_t len )
226
224
{
227
- u32 * tp = addr ;
228
225
int ret ;
229
226
230
- ret = patch_insn_write (tp , insns , len );
231
-
227
+ ret = patch_insn_write (addr , insns , len );
232
228
if (!ret )
233
- flush_icache_range ((uintptr_t ) tp , (uintptr_t ) tp + len );
229
+ flush_icache_range ((uintptr_t )addr , (uintptr_t )addr + len );
234
230
235
231
return ret ;
236
232
}
You can’t perform that action at this time.
0 commit comments