s390/cio: Squash cp_free() and cp_unpin_free()
authorEric Farman <farman@linux.ibm.com>
Thu, 6 Jun 2019 20:28:23 +0000 (22:28 +0200)
committerCornelia Huck <cohuck@redhat.com>
Mon, 17 Jun 2019 11:28:29 +0000 (13:28 +0200)
commit812271b91006e59407ea30ee72341d92b240f667
treea5231c790c0e2b661b3784294a1b02535e3ab889
parent39c00378e337c869b0c9cd35e108fc0c8671d644
s390/cio: Squash cp_free() and cp_unpin_free()

The routine cp_free() does nothing but call cp_unpin_free(), and while
most places call cp_free() there is one caller of cp_unpin_free() used
when the cp is guaranteed to have not been marked initialized.

This seems like a dubious way to make a distinction, so let's combine
these routines and make cp_free() do all the work.

Signed-off-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20190606202831.44135-2-farman@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
drivers/s390/cio/vfio_ccw_cp.c