]> git.ipfire.org Git - thirdparty/systemd.git/commit
cryptsetup: use more descriptive name for the variable and drop redundant function 7619/head
authorMichal Sekletar <msekleta@redhat.com>
Tue, 12 Dec 2017 19:00:31 +0000 (20:00 +0100)
committerMichal Sekletar <msekleta@redhat.com>
Tue, 12 Dec 2017 19:31:25 +0000 (20:31 +0100)
commitea7e7c1e9c3b579ee94a11a192f1013ee4cb829e
tree595863af3fa017e18d884a8fd71aecefa7ad480e
parent5a9f1b05ed6dad48958097fb37811668e69447fb
cryptsetup: use more descriptive name for the variable and drop redundant function

Let's rename escaped_name to disk_path since this is an actual content
that pointer refers to. It is either path to encrypted block device
or path to encrypted image file.

Also drop redundant function disk_major_minor(). src is always set, and
it always points to either encrypted block device path (or symlink to
such device) or to encrypted image. In case it is set to device path
there is no need to reset it to /dev/block/major:minor symlink since
those paths are equivalent.
src/cryptsetup/cryptsetup.c