Can I claim a donation of an item that was gifted to me? (i.e. grandma gives me items and I don't want them/can't use them so i donate them)

I have donated items that were originally gifted to me and don't know if those qualify for a deduction.

Also, inherited items from a relative that we cannot use so are those tax deductible if donated to a charity?