From: Marc Rittinghaus Date: Wed, 26 Apr 2023 11:09:51 +0000 (+0200) Subject: lib/devfs: Fix device_create() function comment X-Git-Tag: RELEASE-0.13.0~100 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f40a2c662bc4e104acd819eb4e4e13163bf9a55b;p=unikraft%2Funikraft.git lib/devfs: Fix device_create() function comment The current comment does not state the correct return values. Signed-off-by: Marc Rittinghaus Reviewed-by: Razvan Deaconescu Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #855 --- diff --git a/lib/devfs/device.c b/lib/devfs/device.c index 53d8b557b..3fedc13fb 100644 --- a/lib/devfs/device.c +++ b/lib/devfs/device.c @@ -82,8 +82,8 @@ device_lookup(const char *name) * device_create - create new device object. * * A device object is created by the device driver to provide - * I/O services to applications. Returns device ID on - * success, or 0 on failure. + * I/O services to applications. Returns 0 on success, an errno + * number otherwise. */ int device_create(struct driver *drv, const char *name, int flags,