]> Git Repo - linux.git/commit - fs/block_dev.c
bd_claim_by_disk: fix warning
authorAndrew Morton <[email protected]>
Mon, 16 Jul 2007 06:41:28 +0000 (23:41 -0700)
committerLinus Torvalds <[email protected]>
Mon, 16 Jul 2007 16:05:50 +0000 (09:05 -0700)
commit4210df283cc703bc494f450c91b8311bdf7fe5ee
tree942e72f356f55dae8c8f6b3d4e6bc033a2191323
parent4e91672c76319aaed24ea3e784e238cf445c57cb
bd_claim_by_disk: fix warning

Fix this:

fs/block_dev.c: In function 'bd_claim_by_disk':
fs/block_dev.c:970: warning: 'found' may be used uninitialized in this function

and given that free_bd_holder() now needs free(NULL)-is-legal behaviour, we
can simplify bd_release_from_kobject().

Cc: Bjorn Steinbrink <[email protected]>
Cc: Johannes Weiner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/block_dev.c
This page took 0.052503 seconds and 4 git commands to generate.