Skip to content

Commit 981e961

Browse files
authored
[CPU]Fix coverity check issues (#30429)
### Details: - *Fix coverity issues* ### Tickets: - *CVS-167178*
1 parent 1185849 commit 981e961

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/frontends/paddle/src/internal/pass/transform_if.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,13 @@ ov::frontend::paddle::pass::TransformIf::TransformIf(std::vector<std::shared_ptr
2525

2626
matcher_pass_callback callback = [funcs](pattern::Matcher& m) -> bool {
2727
const auto conditional_block = ov::as_type_ptr<ov::op::internal::ConditionalBlock>(m.get_match_root());
28+
if (!conditional_block) {
29+
return false;
30+
}
2831
const auto mask_idx = conditional_block->get_input_size() - 1;
2932
const auto cond = conditional_block->get_input_node_shared_ptr(mask_idx);
3033

31-
if (!conditional_block || !cond) {
34+
if (!cond) {
3235
return false;
3336
}
3437

0 commit comments

Comments
 (0)