block/nbd: Default port in nbd_refresh_filename()
authorMax Reitz <mreitz@redhat.com>
Tue, 25 Oct 2016 13:11:31 +0000 (15:11 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 27 Oct 2016 17:05:23 +0000 (19:05 +0200)
commit7edca33804f9b6948a65c04f969facf02a59e6fe
treebb5a036aeba49e1b8dc95af2724633819ef20290
parent442045cbce010688eed2b8ede6141e982c6d6b23
block/nbd: Default port in nbd_refresh_filename()

Instead of not emitting the port in nbd_refresh_filename(), just set it
to the default if the user did not specify it. This makes the logic a
bit simpler.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/nbd.c