From 23276f63af8010a69fef28b6694f1383985eeb02 Mon Sep 17 00:00:00 2001 From: Eric Caruso Date: Fri, 30 Aug 2024 10:51:38 -0400 Subject: [PATCH] ueventd: fix confusing indentation Bug: None Test: compile Change-Id: I8eb39792ed13ba61dd6a61e9771935ece33ae915 --- init/devices.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/init/devices.cpp b/init/devices.cpp index 5560c20bc..a47858781 100644 --- a/init/devices.cpp +++ b/init/devices.cpp @@ -330,11 +330,11 @@ void DeviceHandler::MakeDevice(const std::string& path, bool block, int major, i if (gid != s.st_gid) { new_group = gid; } - if (mode != s.st_mode) { - if (chmod(path.c_str(), mode) != 0) { - PLOG(ERROR) << "Cannot chmod " << path << " to " << mode; + if (mode != s.st_mode) { + if (chmod(path.c_str(), mode) != 0) { + PLOG(ERROR) << "Cannot chmod " << path << " to " << mode; + } } - } } else { PLOG(ERROR) << "Cannot stat " << path; }