Skip to content

Commit 168a323

Browse files
committed
Remove unnecessary code (per Coverity scan)
1 parent 4816d4c commit 168a323

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

cups/ipp.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5731,15 +5731,9 @@ ipp_read_io(void *src, // I - Data source
57315731
return (ipp->state = IPP_STATE_DATA);
57325732

57335733
case IPP_TAG_MEMBERNAME :
5734-
// The value the name of the member in the collection, which
5734+
// The value is the name of the member in the collection, which
57355735
// we need to carry over...
5736-
if (!attr)
5737-
{
5738-
_cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP memberName with no attribute."), 1);
5739-
DEBUG_puts("1ipp_read_io: Member name without attribute.");
5740-
goto rollback;
5741-
}
5742-
else if (n == 0)
5736+
if (n == 0)
57435737
{
57445738
_cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("IPP memberName value is empty."), 1);
57455739
DEBUG_puts("1ipp_read_io: Empty member name value.");

0 commit comments

Comments
 (0)