configfs: Make configfs_new_dirent() return error code instead of NULL
authorLouis Rilling <Louis.Rilling@kerlabs.com>
Mon, 16 Jun 2008 17:01:00 +0000 (19:01 +0200)
committerMark Fasheh <mfasheh@suse.com>
Mon, 14 Jul 2008 20:57:16 +0000 (13:57 -0700)
commit107ed40bd070df5e4a0a012042c45c40963dc574
treed3b8c1799083c0e7d4f1af3e1b84f0a86372eaee
parent5301a77da2da1e4c22573e0e8d394a653b8ad9f9
configfs: Make configfs_new_dirent() return error code instead of NULL

This patch makes configfs_new_dirent return negative error code instead of NULL,
which will be useful in the next patch to differentiate ENOMEM from ENOENT.

Signed-off-by: Louis Rilling <Louis.Rilling@kerlabs.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/configfs/dir.c