* [Intel-wired-lan] [PATCH v2] igb: fix itnull.cocci warnings
@ 2015-12-23 12:55 Julia Lawall
2016-01-08 6:25 ` Jeff Kirsher
0 siblings, 1 reply; 2+ messages in thread
From: Julia Lawall @ 2015-12-23 12:55 UTC (permalink / raw)
To: intel-wired-lan
The index variable of list_for_each_entry_safe should never be NULL.
Generated by: scripts/coccinelle/iterators/itnull.cocci
CC: Gangfeng Huang <gangfeng.huang@ni.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
---
v2: Add sign off
igb_cdev.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- a/drivers/net/ethernet/intel/igb/igb_cdev.c
+++ b/drivers/net/ethernet/intel/igb/igb_cdev.c
@@ -411,8 +411,7 @@ static int igb_close_file(struct inode *
list_for_each_entry_safe(userpage, tmp,
&adapter->user_page_list, page_node) {
- if (userpage)
- igb_free_page(adapter, userpage);
+ igb_free_page(adapter, userpage);
}
}
mutex_unlock(&adapter->user_page_mutex);
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Intel-wired-lan] [PATCH v2] igb: fix itnull.cocci warnings
2015-12-23 12:55 [Intel-wired-lan] [PATCH v2] igb: fix itnull.cocci warnings Julia Lawall
@ 2016-01-08 6:25 ` Jeff Kirsher
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Kirsher @ 2016-01-08 6:25 UTC (permalink / raw)
To: intel-wired-lan
On Wed, 2015-12-23 at 13:55 +0100, Julia Lawall wrote:
> The index variable of list_for_each_entry_safe should never be NULL.
>
> Generated by: scripts/coccinelle/iterators/itnull.cocci
>
> CC: Gangfeng Huang <gangfeng.huang@ni.com>
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
> Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
> ---
>
> v2: Add sign off
>
> ?igb_cdev.c |??? 3 +--
> ?1 file changed, 1 insertion(+), 2 deletions(-)
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20160107/95924108/attachment-0001.asc>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-08 6:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-23 12:55 [Intel-wired-lan] [PATCH v2] igb: fix itnull.cocci warnings Julia Lawall
2016-01-08 6:25 ` Jeff Kirsher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox