public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libibverbs init.c: remove stderr warnings if no userspace driver found
@ 2015-05-08 18:21 Jeff Squyres
       [not found] ` <1431109314-31662-1-git-send-email-jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Squyres @ 2015-05-08 18:21 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA; +Cc: Jeff Squyres

Signed-off-by: Jeff Squyres <jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
---
 src/init.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/src/init.c b/src/init.c
index d0e4b1c..9c21768 100644
--- a/src/init.c
+++ b/src/init.c
@@ -557,19 +557,5 @@ HIDDEN int ibverbs_init(struct ibv_device ***list)
 	}
 
 out:
-	for (sysfs_dev = sysfs_dev_list,
-		     next_dev = sysfs_dev ? sysfs_dev->next : NULL;
-	     sysfs_dev;
-	     sysfs_dev = next_dev, next_dev = sysfs_dev ? sysfs_dev->next : NULL) {
-		if (!sysfs_dev->have_driver) {
-			fprintf(stderr, PFX "Warning: no userspace device-specific "
-				"driver found for %s\n", sysfs_dev->sysfs_path);
-			if (statically_linked)
-				fprintf(stderr, "	When linking libibverbs statically, "
-					"driver must be statically linked too.\n");
-		}
-		free(sysfs_dev);
-	}
-
 	return num_devices;
 }
-- 
2.2.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-12 14:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-08 18:21 [PATCH] libibverbs init.c: remove stderr warnings if no userspace driver found Jeff Squyres
     [not found] ` <1431109314-31662-1-git-send-email-jsquyres-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2015-05-09 14:04   ` Yann Droneaud
2015-05-11 20:32     ` Jeff Squyres (jsquyres)
     [not found]       ` <91CD4206-FE67-45DF-BFFD-3AFBC4DE30E3-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2015-05-11 21:32         ` Yann Droneaud
2015-05-12 14:10           ` Jeff Squyres (jsquyres)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox