History

Coccinelle: memdup: drop spurious line

The kmemdup line in the non-patch case was left over from the added kmemdup line in the patch case.

Julia Lawall committed 8 years ago

Commit 25899e01 parent 1936f8f1 file · +0 −1Browse files

Unified · Split

scripts/coccinelle/api/memdup.cocci+0−1
@@ -49,7 +49,6 @@ statement S; · 48 unmodified lines
49@@49@@
50 50
51* to = \(kmalloc@p\|kzalloc@p\)(size,flag);51* to = \(kmalloc@p\|kzalloc@p\)(size,flag);
52 to = kmemdup(from,size,flag);
53 if (to==NULL || ...) S52 if (to==NULL || ...) S
54* memcpy(to, from, size);53* memcpy(to, from, size);
55 54

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t