TO: Mahesh Kumar P <[email protected]> CC: [email protected] CC: Stefan Stanacar <[email protected]> CC: Eric Ernst <[email protected]>
tree: ssh://[email protected]:29418/a/bsp/kernel/gmin abt/topic/gmin/l-dev/release/123-embargoed head: a7aa56104d2147d7c19a08d24c1439c5d35c521f commit: e5588c5f3d651c467288ed9a83e92fb4c889897a [923/1663] Add North complex power state debug driver for VLV and CHT :::::: branch date: 4 days ago :::::: commit date: 4 days ago >> arch/x86/kernel/intel_nc_dev_state.c:171:5-8: WARNING: end returns can be >> simpified if tested value is negative or 0 git remote add internal-gmin ssh://[email protected]:29418/a/bsp/kernel/gmin git remote update internal-gmin git checkout e5588c5f3d651c467288ed9a83e92fb4c889897a vim +171 arch/x86/kernel/intel_nc_dev_state.c e5588c5f Mahesh Kumar P 2014-09-08 155 } e5588c5f Mahesh Kumar P 2014-09-08 156 return 0; e5588c5f Mahesh Kumar P 2014-09-08 157 } e5588c5f Mahesh Kumar P 2014-09-08 158 e5588c5f Mahesh Kumar P 2014-09-08 159 static void nc_dbgfs_unregister(void) e5588c5f Mahesh Kumar P 2014-09-08 160 { e5588c5f Mahesh Kumar P 2014-09-08 161 if (!dbg_file) e5588c5f Mahesh Kumar P 2014-09-08 162 return; e5588c5f Mahesh Kumar P 2014-09-08 163 e5588c5f Mahesh Kumar P 2014-09-08 164 debugfs_remove_recursive(dbg_file); e5588c5f Mahesh Kumar P 2014-09-08 165 dbg_file = NULL; e5588c5f Mahesh Kumar P 2014-09-08 166 } e5588c5f Mahesh Kumar P 2014-09-08 167 e5588c5f Mahesh Kumar P 2014-09-08 168 static int __init nc_dev_state_module_init(void) e5588c5f Mahesh Kumar P 2014-09-08 169 { e5588c5f Mahesh Kumar P 2014-09-08 170 int ret = nc_dbgfs_register(); e5588c5f Mahesh Kumar P 2014-09-08 @171 if (ret < 0) e5588c5f Mahesh Kumar P 2014-09-08 172 return ret; e5588c5f Mahesh Kumar P 2014-09-08 173 return 0; e5588c5f Mahesh Kumar P 2014-09-08 174 } e5588c5f Mahesh Kumar P 2014-09-08 175 e5588c5f Mahesh Kumar P 2014-09-08 176 static void __exit nc_dev_state_module_exit(void) e5588c5f Mahesh Kumar P 2014-09-08 177 { e5588c5f Mahesh Kumar P 2014-09-08 178 nc_dbgfs_unregister(); e5588c5f Mahesh Kumar P 2014-09-08 179 } --- 0-DAY kernel test infrastructure Open Source Technology Center http://lists.01.org/mailman/listinfo/kbuild Intel Corporation _______________________________________________ kbuild mailing list [email protected] https://lists.01.org/mailman/listinfo/kbuild
