Project

General

Profile

Bug #6147

segop_getpolicy already checks for a NULL op

Added by Josef Sipek about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
kernel
Start date:
2015-08-21
Due date:
% Done:

80%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

Since segop_getpolicy already handles a NULL getpolicy op function pointer (in which case it returns NULL):

  1. the callers don't have check for the op being NULL
  2. segment drivers don't need to provide a dummy function to unconditionally return NULL

Also available in: Atom PDF