aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorIra Weiny <[email protected]>2019-11-14 19:06:34 -0800
committerDan Williams <[email protected]>2019-11-14 19:06:34 -0800
commitab84b77afc95fc038d71aba80aa4440bcbd67663 (patch)
tree6b47a3d956988ac20e9de2a5ecc7adde86cc2240 /scripts/gcc-plugins/cyc_complexity_plugin.c
parentd6d5df1db6e9d7f8f76d2911707f7d5877251b02 (diff)
libnvdimm/namsepace: Don't set claim_class on error
Don't leave claim_class set to an invalid value if an error occurs in btt_claim_class(). While we are here change the return type of __holder_class_store() to be clear about the values it is returning. This was found via code inspection. Reported-by: Dan Carpenter <[email protected]> Reviewed-by: Vishal Verma <[email protected]> Signed-off-by: Ira Weiny <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions