1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-08-02 04:22:02 +03:00

cleanup: cast minor to dev_t

Let the arithmetic run with a single dev_t type (Coverity).
This commit is contained in:
Zdenek Kabelac
2015-05-07 11:03:48 +02:00
parent b8dfd7a53d
commit 5232fd13f3
5 changed files with 10 additions and 10 deletions

View File

@ -959,7 +959,7 @@ static int _add_dev_node(const char *dev_name, uint32_t major, uint32_t minor,
{
char path[PATH_MAX];
struct stat info;
dev_t dev = MKDEV((dev_t)major, minor);
dev_t dev = MKDEV((dev_t)major, (dev_t)minor);
mode_t old_mask;
if (!_build_dev_path(path, sizeof(path), dev_name))