Powertop: remove unnecessary code
Alexandra Yates
Quoted 27 lines
nr_openis already initialized toNR_OPEN_DEF. Removing unnecessary checking
and assignment.Signed-off-by Salman Ahmed <salman0yam(a)gmail.com>--- src/main.cpp | 2 -- 1 file changed, 2 deletions(-)src/main.cpp +0
-3@@ -293,8 +293,6 @@ static int get_nr_open(void) { file.open("/proc/sys/fs/nr_open", ios::in); if (file) { file >> nr_open; - if (!file) - nr_open = NR_OPEN_DEF; file.close(); } return nr_open; --1.8.1.2
Quoted 8 lines
--
Thanks,
Salman Ahmed
_______________________________________________
PowerTop mailing list
PowerTop(a)lists.01.org
https://lists.01.org/mailman/listinfo/powertop
Salman,
I can't get your patch applied, I downloaded the message, and all attachments and every one of them give me error: Patch format detection failed. Please regenerate your patch using:
git format-patch --cover-letter --subject-prefix="PATCH Vn" ..
Where n is the version number of your patch.
Thank you,
Alexandra.