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:
@ -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))
|
||||
|
Reference in New Issue
Block a user